How to exit telnet in CentOS
A problem occurs when debugging a network program. when the service is started, the client cannot connect. First, you can use telnet to connect to the client;
The telnet IP port number is the same as that in Windows.
# telnet 192.168.0.107 1111
Trying 192.168.0.107...telnet: connect to address 192.168.0.107: Connection timed out
The connection times out. It is estimated that it is a problem with Windows Firewall. My service runs on Windows;
Control Panel, system security, Windows Firewall, advanced settings, and new inbound rules;
Execute the telnet command to see if,
Trying 192.168.1.107...Connected to 192.168.1.107.Escape character is '^]'.
The connection is successful, which is indeed a firewall problem!
Ah [é I], what's going on! Unable to return! Ctrl + c, Ctrl + z, ESC, q, quit, exit, none of them work;
Note:
Escape character is '^]'.
Ctrl +]
The posture is correct;
telnet> ?Commands may be abbreviated. Commands are:close close current connectionlogout forcibly logout remote user and close the connectiondisplay display operating parametersmode try to enter line or character mode ('mode ?' for more)open connect to a sitequit exit telnetsend transmit special characters ('send ?' for more)set set operating parameters ('set ?' for more)unset unset operating parameters ('unset ?' for more)status print status informationtoggle toggle operating parameters ('toggle ?' for more)slc change state of special charaters ('slc ?' for more)z suspend telnet! invoke a subshellenviron change environment variables ('environ ?' for more)? print help informationtelnet> closeConnection closed.
Enter a question mark and press enter to view help;
Enter close or quit and press enter to exit telnet;
================================ I am a separation line ============================ ============
A picture that can make people feel better.