Show all active and listening ports
netstat -a
Flag | Description |
---|---|
-a | Show all used ports including listening ports |
-n | Show raw port numbers and IP addresses |
-o | Show process ID |
-b | Show name of running program |
-r | Shows the routing table of the local host |
-s | shows TCP/IP statistics |