allow tcp://localhost:PORT too

in certain cases the DOCKER_HOST may contain localhost instead of an IP