logic to deal with having an alternative websocket port which is
firewalled at the client side.