Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't start two ServerSockets with different ports #98

Open
Kronos87 opened this issue Jun 5, 2014 · 1 comment
Open

Can't start two ServerSockets with different ports #98

Kronos87 opened this issue Jun 5, 2014 · 1 comment

Comments

@Kronos87
Copy link

Kronos87 commented Jun 5, 2014

Hello,
I try to start to ServerSockets with two different ports like this:

        ws = new WebSocketServer(12345, IPAddress.Any)
        {
            OnConnected = OnConnected,
            OnDisconnect = OnDisconnect,
            TimeOut = new TimeSpan(0, 0, 5)
        };

        ws2 = new WebSocketServer(12346, IPAddress.Any)
        {
            OnConnected = OnConnected2,
            OnDisconnect = OnDisconnect2,
            TimeOut = new TimeSpan(0, 0, 5)
        };

And I get the error : "Each socket address (protocol, network address or port) may be used only once."

What can I do for this problem?

@TimofeyBiryukov
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants