Add IPv6 support

The listening socket is now waiting for IPv4 and IPv6 clients.