Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-06-2006, 01:34 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat 9
Posts: 3
Rep:
|
Conflicts with TCP Ports
If you have two pieces of software both configured to listen to the same ports (and same ip addresses), what happens?
Does the first one that run actually listen to that port and the second program gets ignored?
Does the second program run listen and the first one get ignored?
Do both programs try to listen to the port?
or Does the second program not even run due to port conflict?
|
|
|
|
02-06-2006, 01:46 PM
|
#2
|
|
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Rep:
|
When you start the second server you should get:
SocketError: unable to bind to port
|
|
|
|
02-06-2006, 01:47 PM
|
#3
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
The first one running gets the port and the second one times out/errors. At least that's what happened on one of my boxes when Tomcat took port 8080 and another web server timed out waiting for it. Two programs can't listen on one port and if it were easy to bump an already listening daemon off with a second one, that sounds like an exploitable attack method.
|
|
|
|
02-06-2006, 01:57 PM
|
#4
|
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat 9
Posts: 3
Original Poster
Rep:
|
Thank you both for quick responses.
Just wanted to make sure the first daemon wouldn't be affected.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:35 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|