tsites notes and tips

How to find what ports are open.
Open Terminal (Mac OS or Linux), or Command Prompt - as Admin (Windows) and run the following commands for the relevant system:

For OSX / MacOS:

lsof -PiTCP -sTCP:LISTEN && netstat -ap tcp | grep -i "listen"

For Linux:

netstat -ntlp | grep LISTEN

For Windows 7/10:

netstat -an |find /i "listening"

Back to Forum Listing