Fix hostname and port