Fix handling of IPv6 hosts in command

The command method in the client fails to create a socket for IPv6 hosts.  The problem is that create_connection expects a 2-tuple of (addr, port) for both IPv4 and IPv6, but, getpeername returns a 4-tuple of (addr, port, flow, scope) for IPv6 sockets.  Slicing out the first 2 items fixes this problem and works fine in either case.