0

A strange situation. I started

telnet 0 8081

and lsof -i (run under root) doesn't list this connection, but netstat -n does.

Why can this be?

3

I just simulated your scenario and was able to get 8081 in both netstat and lsof. lsof -i displays 8081 as tproxy and so your grep might not be finding it. Try this with -P which shows the numerical ports:

lsof -i -P | grep 8081
  • Aha! -P: This option inhibits the conversion of port numbers to port names for network files. – imz -- Ivan Zakharyaschev Mar 19 '15 at 11:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.