Your suggestions worked (I did not need to fiddle with the configuration and --disable-ipv6 flag). Just for completeness, the line 2975 of socketmodule.c (after addition at line 317) actually reads #ifndef ENABLE_IPV6 Thanks for your help!