Is there any command line command or any other way to find and list out the busy and free port numbers on my Linux machine?
|
The command
will show all tcp and udp ports in use. The output will look something like this:
The number after the colon in the Local Address field shows the port in use. If the state is "LISTEN" it means a port that is using for incoming connections. If the IP address in the If it said Additionally, if you add the
Anything not shown as being in use is free, however users (unprivileged accounts) can only open ports above 1023. |
|||
|
|
|
|
||||
|
|