System.Net.Sockets.SocketException (13): Permission denied

Hello, I try to run an independent C# application on a PLCnext (fw=2020.0.1) that need access to TCP port 50900, but it only work when running it as root. For example, when running as “admin” (with all WBM permission added), I get this error: Unhandled exception. System.Net.Sockets.SocketException (13): Permission denied Any suggestions? Thanks Frédéric

Hello Frederic,

so you need to open and bind a port?
opening a listening socket?

I think you can give these permissions by file.
Usually this is only necessary for ports < 1024.

setcap ‘cap_net_bind_service=+ep’ /path/to/program

kind regards,
oliver