Support for ipv6 serving.

As seen in issue #39.