Partially fix issue #3888, but this doesn't let people set a port number

for ipv6