Port 502 not available

Topics about the Software of Revolution Pi
Post Reply
Posts: 2
Joined: 01 Dec 2021, 14:15

Port 502 not available

Post by Davide »

I am using a Revpi Compact on which I have loaded a software that uses the port 502. Unfortunately it would appear that despite having disabled modbus communication from the web interface port 502 is not usable.
Can you tell me how to make it available?
Thank you
Posts: 182
Joined: 14 Apr 2022, 13:04

Re: Port 502 not available

Post by u.biakoup »

Hello Davide,
to check the listening ports and applications on Linux.

Code: Select all

Open a terminal application i.e. shell prompt.

Run any one of the following command on Linux to see open ports: $ sudo lsof -i -P -n | grep LISTEN. $ sudo netstat -tulpn | grep LISTEN. ...

For the latest version of Linux use the ss command. For example, ss -tulw.
Note that: Ports below 1024 are restricted - only apps with root privileges can listen on those. Of course, your application isn't privileged.

That's the general rule on Linux/Unix (and Android is Linux-based).
See this answer for a rationale behind this restriction.

Best Regards

Ulrich Kouatang Biakoup | Technical Support
Post Reply