Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

for example:

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

we have many client linux to connect 5280 on 192.168.22.1.

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

how to ?

Thanks!

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

share|improve this question

migrated from stackoverflow.com 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

1 Answer 1

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

#netstat -ant -p | grep "192.268.22.1:5280"

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

On the server:

#netstat -ant -p | grep "192.268.22.1:5280"

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.