Fix bug of accepting settings of IP and port from server