Why can I not have two SocketServers bound to two different ports in the same application?

Posted by uriDium on Stack Overflow See other posts from Stack Overflow or by uriDium
Published on 2010-06-02T15:19:21Z Indexed on 2010/06/02 15:24 UTC
Read the original article Hit count: 154

Filed under:
|

I am using .Net 3.5 and Windows XP not sure if any more information is needed.

I have an application that creates a socket, binds to a port and starts listening. A client comes and connects and then disconnects no problem. It can then reconnect no problem. If I have to sockets each listening on a different (e.g. 50 000 and 55 000) then it will accept the connection but it will not allow a reconnect.

I will post source code if needed but I am assuming that it is just something simple that I am not catching.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about socket-programming