Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 10-18-2004, 02:51 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:10 AM   #2
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
Thats three posts for the same question in a 8 minute period.

Post it once in one forum. The Mods will move it if necessary.
Old 10-18-2004, 04:17 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.
Old 10-18-2004, 08:07 AM   #4
Registered: Jun 2003
Location: Germany
Distribution: OpenSuSE, SLES, Debian, Ubuntu, Eisfair
Posts: 79

Rep: Reputation: 15
Donīt know if i understood your question, but isnīt

"cat /proc/ioports"

what you need?


Old 10-18-2004, 03:20 PM   #5
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,551

Rep: Reputation: 160Reputation: 160
Closed. This one remains open:

Closed Thread

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 - Networking 1 10-18-2004 03:42 AM
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 06:19 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