cancel
Showing results for 
Search instead for 
Did you mean: 

telnet issue

kunjuttan
Super Advisor

telnet issue

Hi All,

I am facing one problem in one of our server.If I am trying to telnet to one of our server using port number,it is giving an error.How to solve this issue.

#telnet 172.16.8.164 3301
Trying...
telnet: Unable to connect to remote host: Connection refused


But If I am trying to connect using other port it is getting connected.What to do?
#telnet 172.16.8.164 3300

OS Version is HP-Unix11.31
11 REPLIES
g3jza
Esteemed Contributor

Re: telnet issue

Hi,
well, that port is either not allowed to be accessed from your station (firewall) or it's not even listening on the server.

Check it with your network admin, if there are any restrictions.
g3jza
Esteemed Contributor

Re: telnet issue

or try from the server:

#telnet localhost 3301
if the service is listening on the given port
Laurent Menase
Honored Contributor

Re: telnet issue

you could check also with a netstat on the server

and if you well a listening socket on port *:3300 , then there is a firewall between you and the server.

The other option si that listenqueue is full.

kunjuttan
Super Advisor

Re: telnet issue

Thanks for the update.Network Team is saying that the port is enabled from the firewall side.From server side we need to open the port and make it to listenable mode.How can I do that?
g3jza
Esteemed Contributor

Re: telnet issue

the application should be responsible to open that port and listen on it.
Laurent Menase
Honored Contributor

Re: telnet issue

I am afraid it depends on your application.

you can check if any application is listening
with a
netstat -an |grep LISTEN |grep '\.3300 '

kunjuttan
Super Advisor

Re: telnet issue

# netstat -an |grep LISTEN |grep '\.3300 '
tcp 0 0 *.3300 *.* LISTEN


# netstat -an |grep LISTEN |grep '\.3301'
#

Here for port 3300 its is showing listening and I can able to telnet using 3300.But I cant do it using 3301.In the netstat command also it is not giving any output.
How can I enable the port 3301 to listen state?
g3jza
Esteemed Contributor

Re: telnet issue

It's the role of the application to assign port numbers. Check any configuration files of the application , maybe you can define, where the application should listen (on which port / ports).
Laurent Menase
Honored Contributor

Re: telnet issue

what application would you like to listen on port 3301?
kunjuttan
Super Advisor

Re: telnet issue

We are using SAP
Laurent Menase
Honored Contributor

Re: telnet issue

look at that
http://forums.sdn.sap.com/thread.jspa?threadID=1571340

you just need to configure RFC
gateway service: sapgw01


if it is RFC you want to listen to port 3301