Change host port replacement to hostname