Telnetting host on port 8203

Taking care of your Linux box.

Telnetting host on port 8203

Postby Saadi » Fri Aug 29, 2003 2:33 am

Hi all -

i know telnet is not secure way, but our developers need it for their application. it's turned on on the machine since i can telnet on port 23 from any machine inside our firewall.

So I am trying to telnet to a remote host on port 8203 as:

telnet remote 8203

getting and error message as:

[root@machine /]# telnet remotehost 8203
Trying ip.ip.ip.ip...
telnet: connect to address ip.ip.ip.ip: Connection refused

when i do netstat -a | grep 8203, it gives me:
tcp 0 0 remotehost:8203 *:* LISTEN

so the port is assigned and listening. why can't i telnet the box on port 8203?

please help!
Aziz Khawaja
Chicago, Il.
Saadi
Lance Naik
 
Posts: 33
Joined: Thu Mar 06, 2003 11:06 pm
Location: Chicago, Il - USA

Postby fawad » Fri Aug 29, 2003 3:11 am

Saadi,
Please make sure that the port is not firewalled off (either on the client or the server side). Telnet is bare TCP, so if that doesn't work, there's a very basic problem with the setup.

Also, if the telnet server is linked against tcpwrapper, make sure that the client host has been given access in /etc/hosts.allow on the server.
fawad
Site Admin
 
Posts: 918
Joined: Wed Aug 07, 2002 8:00 pm
ICQ: 17672437
Website: http://www.fawad.net
WLM: fawadhalim@hotmail.com
Yahoo Messenger: fawad2048
AOL: fawadhalim
Location: Addison, IL

Postby Kdaemon » Sat Aug 30, 2003 1:55 am

I got same problem ..connection refused
and I found either server programm was not listening at port or the port was not opened
Kdaemon
Naib Subedar
 
Posts: 346
Joined: Sat Nov 30, 2002 12:22 pm
Location: Islamabad. GPS: LHR

Postby Saadi » Thu Sep 04, 2003 12:08 am

I found the answer!

in /etc/hosts file, there was a loopback entry that contained the hostname.localhost.localdomain. i removed the hostname from the line and added another line under as:

ip_address_of_hostname hostname.companyname.com hostname

saved and exit
bounced the box (optional)
restart the application on the box
then logged on to the machine (that was unable to make connection), telnetted on port 8203 and BINGO! it worked.

thanks.
Aziz Khawaja

Chicago, Il.
Saadi
Lance Naik
 
Posts: 33
Joined: Thu Mar 06, 2003 11:06 pm
Location: Chicago, Il - USA


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron