If the kernel does not support IPv6, the following error message is output:
sock_create(10, <1 or 2>, 0) failed (-97)
where
- -97 is the error code EAFNOSUPPORT (Address family not supported by protocol)
- the other numbers indicate an IPv6 TCP or UDP socket
One possible cause of this error is when using Java which often creates IPv6 sockets alongside IPv4 sockets.