Listing all active internet connections on Linux
By jeltsch on Wed, 09/02/2020 - 07:31There are many possibilities, but perhaps the most friendly command is:
netstat -natp
There are many possibilities, but perhaps the most friendly command is:
netstat -natp
Scanning my home network for all devices that are listening
on port 80 (http):
nmap -p80 192.168.0.0/24 -oG - | grep 80/open
Sometimes this doesn't work (because nmap tries to be smart and only scan hosts that are available). In order to make nmap scanning without intelligence, use the e-Pn (no ping) option. This scans all ports of host 192.168.0.2:
nmap -Pn -p0-65535 192.168.0.2