[Libwebsockets] getaddrinfo: Name or service not known

Andy Green andy at warmcat.com
Thu Oct 23 09:21:46 CEST 2014

On 23 October 2014 04:12:48 GMT+08:00, "Halpin, Joe" <jhalpin at navigationsolutions.com> wrote:
>I'm getting runtime errors like [410612:7874] ERR: getaddrinfo: Name or
>service not known, and I can't track down the name or service that
>needs to be initialized. I've worked through a couple issues like this,
>but so far can't figure this one out.
>I can post my code if needed, but I have no idea where the problem is -
>I've only been learning the library for a few days. I started by
>copying test-client.c and modifying it.  If anyone can point me in the
>right direction I'd appreciate it.

Seems to be related to ipv6 support.

If you don't want ipv6, reconfigure with

cmake .. -DLWS_IPV6=0


>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org

More information about the Libwebsockets mailing list