Use the current local IP address that the client has connected to for incoming listening sockets, too
Handle connections over IPv6 as well as IPv4
Merge pull request #3 from mstorsjo/master

IPv6 support from @mstorsjo