fix host name and port