What prot is a process listening on?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers What prot is a process listening on?
# 1  
Old 11-02-2007
What prot is a process listening on?

Hi,

Bit of a newbie question . . .

How can I detrimine what TCP port a particular process is listening on?

TIA.
# 2  
Old 11-02-2007
if you have lsof installed and you know the port: lsof -itcp:#numport
or just: lsof | grep process_name | grep TCP
# 3  
Old 11-02-2007
Thanks for the pointer I'll have a look at lsof . . .

However I think it is the other way around !! I have a problem with a user saying they have a particular process installed but it is not listening on the port it should so I want to find what it is listening on. . . . .
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Is my Socket Free or Listening

Hi, bash-3.2$ uname -a Linux mymac 2.6.18-409.el5 #1 SMP Fri Feb 12 06:37:28 EST 2016 x86_64 x86_64 x86_64 GNU/Linux bash-3.2$ telnet 10.12.228.40 13900 Trying 10.12.228.40... telnet: connect to address 10.12.228.40: Connection refused bash-3.2$ telnet 10.12.228.40 23900 Trying... (2 Replies)
Discussion started by: mohtashims
2 Replies

2. AIX

Process running but not listening

Hello guys I am experiencing a very strange behavior on one of our AIX servers. We have an application with several processes that listen on several port numbers. Sometimes we receive complains that people cannot connect to the server on a specific port that is used by one the application... (6 Replies)
Discussion started by: abohmeed
6 Replies

3. 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

4. SuSE

Apache2 No listening Sockets available

I installed Apache2 and Gadmin-Httpd on Suse after installation I got a error message no listening sockets available when start apache. Please advise, I check lot of forums but unable to find solution (4 Replies)
Discussion started by: real-chess
4 Replies

5. Ubuntu

f prot

i m new to linux i m not able to install F PROT antivirus how will i do that pls help (1 Reply)
Discussion started by: mallicksaran
1 Replies

6. 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

7. 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

8. 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