Operating System - HP-UX
1834936 Members
2274 Online
110071 Solutions
New Discussion

Re: TCP port connection failure

 
Deborah Schwarzenbach
Occasional Contributor

TCP port connection failure

We are having a problem with a port connection. When tcp tries to connect to a port it locks up and can't connect.
How do we trace the port, troubleshoot and debug it.
Are there any ndd commands that might help.
Thanks,
Debbie
5 REPLIES 5
Pat Lieberg
Valued Contributor

Re: TCP port connection failure

You can try using nettl to trace network traffic.

I've attached a document I pulled off a different forum message I found in the past.
saju_2
Respected Contributor

Re: TCP port connection failure

Hi

Try netstat -a

Regards
CS
Robert Salter
Respected Contributor

Re: TCP port connection failure

Deborah,

You could use lsof to help see what's going on with the port. Get it at;
http://hpux.cs.utah.edu/

Good luck

Robert
Time to smoke and joke
Mel Burslan
Honored Contributor

Re: TCP port connection failure

I second Robert on this one. lsof is your best option to track which process is holding a port hostage. After installing the lsof from depot, you should run

lsof -i tcp | grep port_number_here

you should see the process keeping that port open, so you can kill it if necessary.
________________________________
UNIX because I majored in cryptology...
Raj D.
Honored Contributor

Re: TCP port connection failure

Hi Deborah ,

If lsof is not installed , try

# netstat -a | grep port_no

This may help ,

cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "