LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   List of unused ports on a machine (https://www.linuxquestions.org/questions/linux-networking-3/list-of-unused-ports-on-a-machine-244059/)

linuxprogrammer 10-18-2004 02:01 AM

List of unused ports on a machine
 
For a certain application, I create a socket at run time, that listens to the specified port. How do i know that which port numbers are available for use? I am not talking about 'legally' available, I just want to know the port numbers that are currently not being used on my system.

maxut 10-18-2004 02:42 AM

"nestat -an|grep -i listen" command will show u what ports listened currently. most of port numbers listed in /etc/services file.
http://www.iana.org/assignments/port-numbers


All times are GMT -5. The time now is 02:27 PM.