netstat -antup
2. You can also disable it through iptables. Taking port 8080 as an example, execute the following command:
Iptables- an input port tcp-dport 8080 -j DROP
Iptables -A input port tcp-sport 8080 -j DROP
Iptables- an input port udp-dport 8080 -j DROP
Iptables -A input p udp-sport 8080 -j DROP