Auto-detect Web Socket server host.