I have a problem. I have machine names and their IP addresses in /etc/hosts file. My application does telnet on that machine host name. The application does not uses IP address for tenet. It will fetch the host name from /etc/hosts file.
Now the telnet server runs on customized port. I know that we can't define ports in /etc/hosts file. Do we have any other option to run that telnet on host name but internally on IP:port?
First I must ask why you would want to telnet to another port number as this will only give you access to the functions associated with the application which has that port assigned to it! Using telnet to access any port other than the TCP / UDP port assigned to telnet is a method of checking whether the port is open through a firewall. What are you trying to achieve?