use location.host to connect socket.io