Use correct host (name or IP) with WS