SuperWebSocket icon indicating copy to clipboard operation
SuperWebSocket copied to clipboard

Binding to port 0

Open ddevault opened this issue 10 years ago • 3 comments
trafficstars

When you bind to port 0, the system assigns you some unspecified available port. This is only useful if you can get that port back from SuperWebSocket, but it does not seem to expose the endpoint of the listener.

ddevault avatar Jun 12 '15 23:06 ddevault

Example use-case: https://github.com/SirCmpwn/mdedit/blob/master/MDService.cs#L33-L34

ddevault avatar Jun 12 '15 23:06 ddevault

Same issue for me as well. I have game servers that are created dynamically, and I can't seem to retrieve the server port without doing some hacky coding.

vspin avatar Feb 22 '16 23:02 vspin

Probably you can implement this feature using endpoint runtime replacement like the code below: https://raw.githubusercontent.com/kerryjiang/SuperSocket/v1.6/QuickStart/WindowsAzure/SuperSocketRole/WorkerRole.cs

kerryjiang avatar Feb 28 '16 03:02 kerryjiang