0

I'm working an issue with ZeroMQ using XSub-XPub. I did lsof on bind in port and see:

lsof -i :5556 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME python 475590 codespace 45u IPv4 1432077 0t0 TCP localhost:51620->localhost:freeciv (ESTABLISHED) python 475684 codespace 12u IPv4 1421144 0t0 TCP *:freeciv (LISTEN) python 475684 codespace 15u IPv4 1430650 0t0 TCP localhost:freeciv->localhost:51620 (ESTABLISHED) 

What is freeciv?

Search only yields a video game, but it's not that.

Ubuntu 20.04.6.

0

1 Answer 1

3

lsof tries to match port with a service name specified in /etc/services:

$ grep freeciv /etc/services freeciv 5556/tcp rptp # Freeciv gameplay 

Use -P option to prevent that:

-P inhibits the conversion of port numbers to port names for network files. Inhibiting the conversion may make lsof run a little faster. It is also useful when port name lookup is not working properly.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.