1825950 Members
2949 Online
109690 Solutions
New Discussion

Re: Using UDP protocol

 
SOLVED
Go to solution
Jagadesh
Frequent Advisor

Using UDP protocol

Dear All,

I need to use UDP to test one of my application. Can i specify the same in /etc/services? or do i have to do any other changes?

Kindly help me out in this regard.

Thanks
Jagadesh
5 REPLIES 5
U.SivaKumar_2
Honored Contributor

Re: Using UDP protocol

Hi,

if you refer portname anywhere in your application , you have to define the portname-portnumber mapping in /etc/services for the application to bind to that port.

if the application is using port number directly to bind, there is no need for /etc/services entry. you can straightaway start the application.

regards,

U.SivaKumar.
Innovations are made when conventions are broken
Jagadesh
Frequent Advisor

Re: Using UDP protocol

After mentioning in /etc/services how can i check whether the same is using UDP or not?

Thanks
Stuart Browne
Honored Contributor
Solution

Re: Using UDP protocol

You've not been terribly clear on exactally what you're wanting to do.

Are you trying to see if your application is sending UDP traffic? Or accepting UDP traffic?

Either way, you have a few options available.

If you want to see if it's sending/receiving UDP traffic, the 'tcpdump -n udp port ' command should show you.

If you want to see if your application is listening for UDP traffic on a defined port, use the 'netstat -nulp' command.

As UDP is a stateless protocol, using 'netstat -na' won't show you anything useful that the other netstat command wouldn't.

If it's neither of these, can you please clear up exactally what you're trying to achieve.
One long-haired git at your service...
Guru Dutta
Frequent Advisor

Re: Using UDP protocol

use netstat -p for knowing which protocol your application is using.
Bharat Katkar
Honored Contributor

Re: Using UDP protocol

Hi jagadesh,
You can use rpcinfo command to check the if any particular service is up or not.

Regards,

p.s. Seen this in your profile. "I have assigned points to 56 of 295 responses to my questions." Keep assigning points to the replies that really helped.
You need to know a lot to actually know how little you know