Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to tell what service is currently using a port?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
KraziKid
Tux's lil' helper
Tux's lil' helper


Joined: 26 Dec 2002
Posts: 128

PostPosted: Tue Jan 14, 2003 3:16 am    Post subject: How to tell what service is currently using a port? Reply with quote

How can I tell what service is currently attempting to use a port?
Back to top
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Tue Jan 14, 2003 3:17 am    Post subject: Reply with quote

netstat -lp
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: San Francisco

PostPosted: Tue Jan 14, 2003 1:07 pm    Post subject: Reply with quote

I suggest you emerge lsof, and run `lsof -i`
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Tue Jan 14, 2003 5:45 pm    Post subject: Reply with quote

All to tcp-port binded processes:
Code:

~# netstat -napt

Particular port:
Code:

~# fuser -v $PORT/tcp

or using lsof
Code:

~# lsof -i tcp:$PORT


Check all appropriate manpages for more information.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum