Accept IPv6 IP in arguments, as well as hostnames.

I did originally try a regex like the one you wrote, but due to eagerness it never matches the port. There would need to be a catchall case in any event -- totality and all that -- and in this case it covers the host only case.