Answers for "see all open ports"

0

list open ports firewalld

$ sudo firewall-cmd --list-all
Posted by: Guest on July-08-2021
8

see what ports are in use

Get-Process -Id (Get-NetTCPConnection -LocalPort portNumber).OwningProcess
Posted by: Guest on April-02-2020
0

listen all local open ports

#With nmap:
nmap -p- "0.0.0.0"

# check each service:
sudo lsof -i -P | grep LISTEN | grep $PORT_NUMBER
Posted by: Guest on January-19-2022

Browse Popular Code Answers by Language