document.location.host includes port number if needed