I need a utility built into several versions of Windows (XP to Win7 specifically) that can tell me if a particular port is in use. I've found a few different ways for each OS, but I'm looking for a single command that works across all of them.
Asked
Active
Viewed 423 times
3 Answers
3
If you use netstat -n it will tell you the current in use ports. The -n tells it not to try to resolve hostnames from IPs. You could also run it with -a to have it TRY to resolve hostnames.
HostBits
- 11,945
3
netstat -bona
This will link ports to processes. Very useful if you want to know what process is running on port X.
For easy reviewing I redirect the output to a file
netstat -bona > file.txt
Paul
- 317