Operating System - HP-UX
1851088 Members
3036 Online
104056 Solutions
New Discussion

Re: Opening a Port in HPUX 11.23

 
Arun Jain
Frequent Advisor

Opening a Port in HPUX 11.23

Hi All,

I have two servers each in different network zones. From one server I am trying to do telnet with a specific port number.

On one port number (DB port), it is showing me connection refused and when I am trying to connect it with second port (DB port) it is showing me connection timed out.

Please suggest

Thanks n Regards
Arun Jain
speak less say more
4 REPLIES 4
Court Campbell
Honored Contributor

Re: Opening a Port in HPUX 11.23

Can you show us the command syntax you are using?
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Mel Burslan
Honored Contributor

Re: Opening a Port in HPUX 11.23

Connection refused usually means, your IP packets have reached the destination server but there is no application listening on the port you are trying to connect to.

To test this, go to the target (listening) machine and run

netstat -an | grep LISTEN | grep

more than likely, you will not see anything

On the other hand, connection timed out message is usually an indicative of firewall not letting you access the other (target) server using the port number specified. Unless you are the firewall admin, I'd suggest you to talk to the firewall admins.

Hope this helps.
________________________________
UNIX because I majored in cryptology...
Laurent Menase
Honored Contributor

Re: Opening a Port in HPUX 11.23

typically you have a firewall between the 2 system
the first port is reseting
the second port is not answering
so it can be a configuration of ipfilter or a firewall between the systems.
UVK
Trusted Contributor

Re: Opening a Port in HPUX 11.23

Arun,

when you want to have a telnet connection on a particular port for a particular server that server should have the port open and should be ready to accept connection, which typically will happen only when u have a service running on that port.

for example when u do a
#telnet servername 22
u will get a connection if ssh is enabled on that server. If ssh is disabled u will get a connection refused. and in this case enabling and disabling is controlled via inetd.conf. Keep in mind u have to have ur firewall allowing this port traffic.

Coming to you case as u said 2 different networks there is a very god chance that u have a firewall which might be controlling port traffic. if u want to have this connection check with your network team to allow that port traffic.

Cheers,
-uvk

-------------------------------------------
Like it or worked !! Click kudos !!