# HG changeset patch # User Oleksandr Gavenko # Date 1500648665 -10800 # Node ID d531941f084d3db7e4c281e80713799a66c3dcbb # Parent e34db1f233fee4a067d9ec0f0c8f54e38b29b1d2 List of open ports. diff -r e34db1f233fe -r d531941f084d net.rst --- a/net.rst Fri Jul 21 17:15:45 2017 +0300 +++ b/net.rst Fri Jul 21 17:51:05 2017 +0300 @@ -69,48 +69,38 @@ $ nbtstat -r -List of open ports. -=================== +List of open ports +================== -List of open ports under Windows. ---------------------------------- -:: +List of open ports under Windows:: cmd> netstat # with DNS name resolution, TCP only cmd> netstat -n # without name resolution, TCP only cmd> netstat -a -n # TCP and UDP cmd> netstat -s # show IP, ICMP, TCP, and UDP statistics. -List of open ports under Linux. -------------------------------- - -``-t`` tcp, ``-u`` udp, ``-l`` local, ``-p`` process:: +List of open ports under Linux:: $ sudo netstat -tulp +where ``-t`` tcp, ``-u`` udp, ``-l`` local, ``-p`` process. + or to use port number instead of protocol name:: $ sudo netstat -tulpn -Which processes open port? -========================== +Which processes open port +========================= -Windows -------- -:: +Windows:: cmd> netstat -o # show PID cmd> netstat -b # show also cmd name cmd> netstat -b -v # show all modules (.exe and .dll) with full path -Linux. ------- -:: +Linux:: $ sudo netstat -tulpn - -or:: - $ sudo lsof -i How disable IPv6?