Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

for example:

our linux license server deomon is on "5280@".

we have many client linux to connect 5280 on

I want to find out which client process id connect "5280@", and I also need to know the client ip address.

how to ?


all machine is "linux". server is also "linux"

share|improve this question

migrated from Jul 18 '12 at 0:21

This question came from our site for professional and enthusiast programmers.

... In the program? From the command line? Where? – Ignacio Vazquez-Abrams Jul 17 '12 at 5:00
command line ,Thanks! – wei Jul 17 '12 at 5:55

If the client is "Linux", on the client:

#netstat -ant -p | grep ""

You would find the process id/name which connect to the server on port 5280.

On the server:

#netstat -ant -p | grep ""

You would find the client ip which connect to the server on port 5280.

BTW, you can not find the client process id/name on the server.

share|improve this answer
hi ageek2remember, the command result is show all connections PID/Program name "-". Do you have any suggestions ? – wei Jul 17 '12 at 10:28

You must log in to answer this question.