Peewit,
I am trying to port the code to use on CoDeSys3 PLC. For some reason I can not get the IP_Control to work unless I use the following:
SysSockSetOption (socket, SOCKET_SOL, SOCKET_SO_REUSEADDR, ADR dint_true () function to determine (dint_true)); (* Set option for local address reuse *)
Currently I use the older library which CoDeSys renamed SysSocket23. I plan on porting over to the newer library but was able to debug on why it would not work.