I set my TCP server to localhost, but instead of seeing in the host portion of the lsof output, I see an asterisk.

After running lsof -i...

my_process 66666 root 5u IPv4 0xffff...c0 0t0 TCP *:5001 (LISTEN)

What does this asterisk mean? Is my socket bound to localhost, does it not have an address or something else?


That means that limiting your server to localhost was not successful (maybe you have to restart is?) because it is listening on all interfaces, accepting all destination IP addresses.

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.