LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-10-2007, 08:28 AM   #1
mokku
Member
 
Registered: Feb 2007
Posts: 197

Rep: Reputation: 30
binding port


Hi,

I know that well knowns ports such as named, http,etc............
Can I able to use it for other applications? since I am not running those daemons.
 
Old 11-10-2007, 12:20 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 79
Yes (is too short).
 
Old 11-10-2007, 05:08 PM   #3
mokku
Member
 
Registered: Feb 2007
Posts: 197

Original Poster
Rep: Reputation: 30
If the port already established and if I uuse that port on different application, which application would work?
 
Old 11-10-2007, 05:34 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 67
You must be root to use ports below 1024.

If you try to bind to a port which is already in use, the listen system call will fail with error EADDRINUSE (already in use). See the listen(2) manual page.

Last edited by matthewg42; 11-10-2007 at 06:35 PM. Reason: removed faulty comma
 
Old 11-10-2007, 05:51 PM   #5
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 79
Quote:
Originally Posted by mokku View Post
which application would work?
The first one will continue to work and the second one will error out with EADDRINUSE.
 
  


Reply


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
Azureus port binding G00fy Linux - Networking 0 07-18-2006 02:15 AM
error binding address/port blackzone Linux - Networking 1 09-03-2004 02:23 AM
PsyBNC not binding on port 80. Adam15906 Linux - Software 1 06-10-2004 11:24 AM
binding linuxconf port to one NIC the_cyber_boss Linux - Security 1 12-18-2003 10:51 AM
Socket binding to port problems Xris718 Linux - General 0 07-10-2003 01:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 PM.

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