Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-18-2004, 03:01 AM   #1
LQ Newbie
Registered: Jul 2004
Posts: 26

Rep: Reputation: 15
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.
Old 10-18-2004, 03:42 AM   #2
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
"nestat -an|grep -i listen" command will show u what ports listened currently. most of port numbers listed in /etc/services file.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Closing unused ports jasone Linux - Security 12 07-02-2005 03:49 PM
List of unused ports on a machine linuxprogrammer Linux - Newbie 2 10-18-2004 03:20 PM
List of unused ports on a machine linuxprogrammer Linux - Newbie 4 10-18-2004 03:20 PM
list outgoing ports maenho Linux - Networking 2 10-05-2004 04:19 AM
Where do i find a list of my ports? zerofocus Linux - Security 2 03-22-2004 01:25 PM

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration