updating websocket location to use the host name instead of ip