Fix building of the remote name in the IO class

If getsockname is called against a box that is IPv6 instead of IPv4, it returns a 4 item tuple instead of 2