You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mostly use this library on windows to connect to a local server via "wss://localhost". This normally works fine, but when not connected to a network (network cable unplugged and not connected to wifi), IXWebsockets fails to connect to my server.
I tracked it down to failing DNS lookup of localhost. Digging into the code, I see getaddrinfo is configured not to do lookups when a with only a loopback address available (hint AI_ADDRCONFIG is set):
As a workaround I tested to remove that flag and my program started working as expected.
I'm not proficient in winsock etc, so I can't tell if there any specific reason for the flag to be set for the library or can it be removed or made configurable?
Thanks!
The text was updated successfully, but these errors were encountered:
Hi! Thanks again for the lib!
I mostly use this library on windows to connect to a local server via "wss://localhost". This normally works fine, but when not connected to a network (network cable unplugged and not connected to wifi), IXWebsockets fails to connect to my server.
I tracked it down to failing DNS lookup of localhost. Digging into the code, I see
getaddrinfo
is configured not to do lookups when a with only a loopback address available (hintAI_ADDRCONFIG
is set):IXWebSocket/ixwebsocket/IXDNSLookup.cpp
Line 64 in 9884c32
As a workaround I tested to remove that flag and my program started working as expected.
I'm not proficient in winsock etc, so I can't tell if there any specific reason for the flag to be set for the library or can it be removed or made configurable?
Thanks!
The text was updated successfully, but these errors were encountered: