only take the window.location.port when params.host isn't passed in
0.1.14