A strange situation. I started
telnet 0 8081
lsof -i (run under root) doesn't list this connection, but
netstat -n does.
Why can this be?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
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