HTTP listener crashes on Windows when listening on 0.0.0.0
If I ignore the exception it runs, but it's not able to receive any message, and when I stop it it throws another exception...
Looks like if I listen to http://*:8000 it works, instead of http:/0.0.0.0:8000
try it in CMD: netsh http add urlacl url=http://*:8080/ user=BUILTIN\Users listen=yes
I have the same problem. For me these two points work: 1- you have to set http_listener url as : "http://*:port". 2- run your code as admin
"http://*" => this is loopback of ipv6 not default route. "0.0.0.0" is not ADDR_ANY but LOOPBACK. it's different.
If you want is "http:/0.0.0.0:8000", listen to "http://0:8000" instead of "http://*:8000"