ljean / modbus-tk

Create Modbus app easily with Python
Other
568 stars 213 forks source link

sudo permission mandatory? #81

Closed ricardolimaui closed 7 years ago

ricardolimaui commented 7 years ago

Hi guys I'm getting this error server error: [Errno 13] Permission denied if I run the file modbustcp_slave.py without using sudo. It is mandatory or I can change that? This need access to what ? thank you

ljean commented 7 years ago

It depends on your system but I think that a user needs some rights to open a port as a server.

guerriky commented 7 years ago

Just to add to that, if you use OS reserved ports (like the standard 502) you will HAVE to use sudo, depending on your system.

If you can't (or don't want to) run your program with sudo, use a port number greater than 1024. Works just fine for me. refer to this: Wikipedia

ricardolimaui commented 7 years ago

Thank for your answer! I have check that info too in the internet :) I will try that :)