Listening on more than one hostname or IP address
See original GitHub issueHello,
I tried the following on windows 10 and ran as administrator:
server = new WatsonWsServer("127.0.0.1+host1", 8081, false);
But this does not work. Could you share an example of listening on more than one host/ip ?
Thank you very much, Jules
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
what is it like that a host name is resolvable to more than ...
1 ) A hostname can be resolved to more than one IP address; this is called DNS round robin and can be used...
Read more >c# - How to listen on multiple IP addresses?
As others have said, you can use IPAddress.Any to listen to the IPv4 addresses on the local machine. However, if you only want...
Read more >How can I have SQL Server listening on more than one IP ...
Keep in mind that having an active listener on a public connection is asking for trouble, best to do it over a VPN,...
Read more >What are the potential risks of binding an application to ...
If your service listens on more than one port, an attacker can do MITM attack on it, and perform traffic spoofing/injection/modification (this ...
Read more >Can multiple dynamic DNS resolve to the same IP address
You can certainly have multiple domains/hostnames in DNS that resolve to the same IP address. However, whether you can differentiate this ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just uploaded a new version containing a constructor that supports multiple listener prefixes. Please re-open if any issues!
NuGet: https://www.nuget.org/packages/WatsonWebsocket/2.3.2 Commit: https://github.com/jchristn/WatsonWebsocket/commit/7944cfbdd5fa4af291cdb8369897cf23b1916ca3
Cheers, Joel
Hi @SieBrum
I may have misinterpreted the question, and this certainly is a way to achieve the same goal.
*
,+
, or0.0.0.0
(OS dependent) to listen on anything. I do this all the time, just generally not in production, because it requires running as administrator.Cheers, Joel