PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. fblanchard
  2. PLCnext Technology & PLCnext Controls
  3. Saturday, 20 June 2020

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

Oliver PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

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

Phoenix Contact Electronics Headquarter - PLCnext Runtime Product Management and Support

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.