Check which ports are listening for TCP connections from the network

#notice that some companies might not like you using nmap
nmap -sT -O localhost

# check port 0-65535
nmap  -p0-65535 localhost
click the source code to copy