Honors ports on the host page

Switches window.location.hostname to window.location.host so we can support a url like example.local:3000