There are many possible reasons, but four come immediately to mind.
-
The IP address is invalid.
-
The IP address is unreachable because of an error in routing table configuration on intermediate nodes.
-
A firewall somewhere is refusing to admit the traffic.
-
The target host has inetd so configured as not to accept inbound telnet requests.
solved connection refused when I want to telnet my Ubuntu ip