Wat happens if two applications try to listen to the same port?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
The second one that binds to the port will get an error saying something else is already listening on the port. |
|||||
|
|
Unless they are spawned via tcpmux, the first application binds to the port and listens for connections to it, while the second one cannot bind and cannot listen. |
|||||
|