List of open ports.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 21 Jul 2017 17:51:05 +0300
changeset 2160 d531941f084d
parent 2159 e34db1f233fe
child 2161 44ad8ff65756
List of open ports.
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?