sourceperl / pyModbusTCP

A simple Modbus/TCP library for Python
MIT License
297 stars 104 forks source link

server.start() results in error 13 on Ubuntu #40

Closed ericboxer closed 3 years ago

ericboxer commented 3 years ago

I've been working on getting this module integrated into a project and seems to run fine on my Mac. As soon as I move it over to a staging platform (Ubuntu) I get an error 13 as soon as server.start() is run.

I have given full permissions to all of my files, as well as trying to put the pyModbusTCP files in the same directory with full permissions.

Any thoughts on where I can look next?

sourceperl commented 3 years ago

You must start the script as root to open a TCP port <1024 (as for the default modbus port 502).

more info : https://stackoverflow.com/questions/24001147/python-bind-socket-error-errno-13-permission-denied

ericboxer commented 3 years ago

Ahhh that makes sense, thank you!