You want to check if any ports are already in use or not. What will you do in such cases? Downloading heavy network monitoring apps are not always going to help if your need is limited and you’re interested in letting your resources taken up by such apps. So let’s see how you can do this with minimal efforts.
For windows:
1. Netstat: You can use NETSTAT command on command prompt. This will show you protocol statistics and all available TCP/IP connections.
You can use these commands in command prompt:
netstat
netstat -anb (a = all, n = don't do DNS lookup, b = list executables associated)
netstat -h (lists all the parameters )
2. TCPView
There is tiny utility which shows all the TCP/UDP/ connections. This utility is just 207kb and works with all versions of windows. You can download it here.
For Linux
1. Netstat command used under root can let you find out which hidden ports are used by which applications.
netstat –nap
or you can use
netstat –ntulp
For both windows and linux, you can use network monitoring program Wireshark. I know it is not worth to download huge apps for just lookup information. But i found out this application worthy to list here for reference.