1832308 Members
2134 Online
110041 Solutions
New Discussion

How to trace UDP port ?

 
Ricardo Bassoi
Regular Advisor

How to trace UDP port ?

Hi All !

I??d like to trace an UDP port 5555, because I have a programa that tries to use this port but until now didn??t work. So what I need is a way to trace the attempts in use this port.

Regards
If you never try, never will work
6 REPLIES 6
John Poff
Honored Contributor

Re: How to trace UDP port ?

Hi,

The only thing I know that would show you what is using the port is 'lsof', and I don't know if that would give you the information you are looking for. To debug your application, you might have to write a little program to talk/listen to port 5555 and code it to show you what is coming in, and maybe to send something back to see how your application responds.

JP
Sridhar Bhaskarla
Honored Contributor

Re: How to trace UDP port ?

Hi Ricardo,

You can use nettl to trace the packets that are generating to|from 5555. Look for the man page of nettl for more info. There is a GUI for nettl available on patched 11.0 - nettladm. It will be much easier for you.

If you want another solution, you can use ethereal (my favourite). But you would need to understand the syntax of tcpdump filters to get accurate measurement.

Again this is only for 11.0 onwards and there are a lot of dependencies to install too.

http://hpux.connect.org.uk/hppd/hpux/Gtk/Applications/ethereal-0.9.4/

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James R. Ferguson
Acclaimed Contributor

Re: How to trace UDP port ?

Hi:

Use 'lsof' (from the HP-UX Porting Center) :

# lsof -i udp:5555

Regards!

...JRF...
John Poff
Honored Contributor

Re: How to trace UDP port ?

Sri,

A gui for nettl? I just tried it. Cool! I didn't know there was such a beast.

I love it when I hang out here and learn something new! (Which, given my general lack of knowledge, happens quite frequently!)

Thanks!

JP
Anil C. Sedha
Trusted Contributor

Re: How to trace UDP port ?

Run the following command using lsof

It will give you the name of the application or user using the port.

lsof -i @ hostname:5555

Regards,
Anil
If you need to learn, now is the best opportunity
Ashwani Kashyap
Honored Contributor

Re: How to trace UDP port ?

lsof is the key .
But I was just wondering , is it not that omniback uses this port ?