LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-28-2012, 12:42 AM   #1
v11pandey
LQ Newbie
 
Registered: Oct 2012
Posts: 11

Rep: Reputation: Disabled
Unable to track the application with the help of a UDP port number.


Hi,

In my Linux server there is some application using 51164 upd port. I know its going to a specific IP but unable to trace which application is using that port.
So that i can kill the application

It tried for
netstat -e | grep 51164
netstat -aune | grep 51164
lsof -Pnl +M -i4
and even had a look in /etc/services but still unable to find.

Thanks in advance
//
vivek
 
Old 12-28-2012, 01:17 AM   #2
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
Hi v11pandey,

Run the following command as root:

Quote:
netstat -anp|grep portnumber
i.e netstat -anp|grep 51164 in your case.
 
Old 12-28-2012, 02:24 AM   #3
v11pandey
LQ Newbie
 
Registered: Oct 2012
Posts: 11

Original Poster
Rep: Reputation: Disabled
Hi Ravi,

Thanks for you reply...
but netstat -an --> didn't worked output are as below


root@segotl0269# netstat -an | grep 56114
root@segotl0269# ps -ef | grep 51164
root 30131 30990 0 09:21 pts/2 00:00:00 grep 51164


Is there any condition of relation between output of above 2 command. ?
 
Old 12-28-2012, 02:30 AM   #4
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
Quote:
netstat -anp
will show you if a port is being used.

I guess.. the port isn't open.

Last edited by RaviTezu; 12-28-2012 at 02:39 AM.
 
Old 12-28-2012, 02:44 AM   #5
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
Quote:
Originally Posted by v11pandey View Post
root@segotl0269# netstat -an | grep 56114
root@segotl0269# ps -ef | grep 51164
root 30131 30990 0 09:21 pts/2 00:00:00 grep 51164


Is there any condition of relation between output of above 2 command. ?
Yes,

"netstat" gives you the network statstics like information about ports states,connection types..etc.

Where as "ps" gives you the information of the running processes.

Use the man pages for more information.

Last edited by RaviTezu; 12-28-2012 at 03:29 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Retrieve client ip address and port number in kernel udp socket yethish Linux - Newbie 4 09-08-2011 09:59 PM
Unable to get nfsd port number from server j32 Linux - Embedded & Single-board computer 5 09-16-2010 03:51 AM
Track open port to application newbe45 Linux - Server 5 09-14-2007 11:12 AM
how to change the port number of an application tijo.thomas Linux - Kernel 1 08-23-2006 03:45 AM
Root-NFS: Unable to get nfsd port number from server Eileen Linux - Networking 2 04-11-2006 10:18 PM


All times are GMT -5. The time now is 01:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration