Telnet ip is actually connected to port 23 (the port on which Telnet service listens by default), and it doesn't work. There are two situations:
The 1.telnet service is not open on the other end.
2. There is a firewall between the target server and the source server, which blocks the protocol connecting port 23.
Check:
1. Make sure that the telnet service has been started by the peer.
Netstat -an|grep 23 to see if it is monitored.
2. If the opposite end has turned on telnet service monitoring, please ask the network administrator to check whether there is a firewall or something in the intermediate link.
3. If there is no firewall in the middle, analyze the data packet capture on the source host and the target host, and capture the data packet with the tcpdump command.