Fixed the problem that resets the server address and the port number.