Replace port number.