PID of listening ports


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu PID of listening ports
# 1  
Old 01-22-2013
PID of listening ports

I ran 'sudo netstat -ntpl' and got the following without PID
Code:
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:38977           0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:34253           0.0.0.0:*               LISTEN      -

I check with 'sudo rpcinfo -p' and found out that 2049 and 34253 are used by nfs and nlockmgr. But nothing for port 38977. 'sudo lsof -i :38977' shows nothing.
How can I find out who is listening at 38977?

On another machine with similiar setup, I got
Code:
tcp        0      0 0.0.0.0:59517           0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN      -               
tcp        0      0 0.0.0.0:52968           0.0.0.0:*               LISTEN      -

with 2049 and 52968 from nfs and nlockmgr, which left port 59517. I think it must be something I installed, and I want to find out what.

Thanks in advance.

tt
# 2  
Old 01-22-2013
What is your OS(i.e. SUNOS, HPUX, Linux, etc.)?
# 3  
Old 01-23-2013
It's Ubuntu 10.04 desktop.
# 4  
Old 01-23-2013
I don't have access to a Ubuntu box right now, but check out info on this link:
http://danielabrantes.blogspot.com/2...ntu-linux.html
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Processes listening on Ports(Solaris)

Howdy Experts, This is my first post here and I am posting because I have not been able to find an answer for this question. How do you find out what process is listening on a given port? I do not have "lsof" available and how do we find this out without logging in as Root. I know that this... (5 Replies)
Discussion started by: KingaKoopa
5 Replies

2. Red Hat

No process ID for listening ports

How can I have ports that are listening without processes being associated with them? root@ldv002 # netstat -ltnup Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0... (2 Replies)
Discussion started by: Padow
2 Replies

3. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

4. What is on Your Mind?

What are you listening to right now?

This is has been posted many times before... It is not in this forum as of now, so I have decided to put it here :D I'm listening to The Outsiders (AKA Hell is for Heros Part I) by Modern Life is War.... what about ya'll? (4 Replies)
Discussion started by: Mars8082686
4 Replies

5. UNIX for Dummies Questions & Answers

Session PID & socket connection pid

1. If I use an software application(which connects to the database in the server) in my local pc, how many PID should be registered? Would there be PID for the session and another PID for socket connection? 2. I noticed (through netstat) that when I logged in using the my software application,... (1 Reply)
Discussion started by: pcx26
1 Replies

6. What is on Your Mind?

So... What are you listening to?

Hi guys, lets make this more interesting... I'm sure you listen to something when your working on a project or something... I know, I do, helps with concentration. Track: ±¯¸èÖ®Íõ (King of sad songs) Artist: -îǧ‹Ã Miriam Yeung Lovely forum BTW! :D (33 Replies)
Discussion started by: hype.it
33 Replies

7. Programming

printing ppid,child pid,pid

question: for the below program i just printed the value for pid, child pid and parent pid why does it give me 6 values? i assume ppid is 28086 but can't figure out why there are 5 values printed instead of just two! can someone comment on that! #include<stdio.h> #define DIM 8 int... (3 Replies)
Discussion started by: a25khan
3 Replies

8. UNIX for Dummies Questions & Answers

TCP Listening Ports

Hello all, Can someone instruct me on how to change the listening port for ftp ( or any tcp service) from 21 to another port number? Thanks in advance.. -AJ (3 Replies)
Discussion started by: jacobsa
3 Replies

9. IP Networking

port not listening..

Hi.. I am using HPux11.0 i want to know if server not listening to a tcp port what should we do to resolve the problem.... in /etc/services tcp port 7108/tcp is mentioned for some perticular application.. while starting that application error is coming could not establish listening address... (1 Reply)
Discussion started by: Prafulla
1 Replies
Login or Register to Ask a Question