LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   binding port (https://www.linuxquestions.org/questions/linux-newbie-8/binding-port-598572/)

mokku 11-10-2007 08:28 AM

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.

osor 11-10-2007 12:20 PM

Yes (is too short).

mokku 11-10-2007 05:08 PM

If the port already established and if I uuse that port on different application, which application would work?

matthewg42 11-10-2007 05:34 PM

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.

osor 11-10-2007 05:51 PM

Quote:

Originally Posted by mokku (Post 2954691)
which application would work?

The first one will continue to work and the second one will error out with EADDRINUSE.


All times are GMT -5. The time now is 04:38 PM.