List of open ports.
--- 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?