connecting socket to location.host, not localhost