[Bugfix] Client port from window.location