externalize hostname and port