I am running a server application (written in C), that is bound to my server on localhost
address 127.0.0.1
and let it listen in first case on port 10000
and in second case on port 20000
When I run command I lsof | grep IP
in last column is:
- localhost:webmin (LISTEN) (first case)
- localhost:20000 (LISTEN) (second case)
So instead of port 10000
there is webmin
.
What does this mean? I found this.
It says that Webmin is a web-based interface for system administration for Unix. This doesn’t help me; why am I seeing webmin
in my port list?
webmin is associated with port 10000. lsof is “deducing” that webmin is what is running. For instance, if your app was bound to port 3306, lsof would think it was MySQL.
See this Wikipedia link for a list of well-known ports.
Check more discussion of this question.