You are not logged in.
Pages: 1
How do I make a socket-based HTTP server listen for both 0.0.0.0 and [::] addresses? Just like http.sys.
Offline
IPv6 :: binding was not currently supported.
Please try with
https://github.com/synopse/mORMot2/commit/fc6e585c
Offline
How can I make a TRestHttpServer to listen both of IPv4/6 ?
TRestHttpServer.Create(HttpPort, [SampleServer], '+', HTTP_DEFAULT_MODE, 4);
This will using http.sys and listen both 0.0.0.0 and [::].
TRestHttpServer.Create(HttpPort, [SampleServer], '+', WEBSOCKETS_DEFAULT_MODE, 4);
This will only listen 0.0.0.0
TRestHttpServer.Create('[::]:'+HttpPort, [SampleServer], '+', WEBSOCKETS_DEFAULT_MODE, 4);
This will only listen [::].
Offline
Dual binding is touchy: we need to bind as IPV6 then allow IPV4 mapping - but the IPV6_V6ONLY option is not available on some OS, or disabled.
https://lwn.net/Articles/688462/
http.sys makes no direct binding, all is done in the kernel mode.
Any input is welcome.
Offline
Pages: 1