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.

I use the command nestat -nlp, but it doesn't display the pid, like this:

root@***. /$ netstat -nlp | grep 4607
tcp        0      0 0.0.0.0:4607                0.0.0.0:*                   LISTEN      -

But if I use lsof, it will display the pid:

root@***. /$ /usr/sbin/lsof -i:4607
COMMAND   PID USER   FD   TYPE     DEVICE SIZE NODE NAME
acm     28585 root    8u  IPv4 3804551205       TCP *:4607 (LISTEN)

I want to know why. How I can obtain the pid from the command netstat -nlp?

share|improve this question

migrated from stackoverflow.com Feb 27 '12 at 13:19

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

    
it is a bug. because socket id keep on increased and finally got an overflow. you could reboot your computer to make the counter of socket id reset. –  Qian Feb 27 '12 at 18:48
add comment

Your Answer

 
discard

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