Gets web socket server host name dynamically