Can't send network variables to codesys

Thank you for the help @Hopperpop.

The firewall was the problem!

For anyone else facing this in the future:
temporarily disable firewall with these commands in cmd or login with PuTTy.

SSH admin@AMC300.local
 sudo su
 sudo nft flush ruleset