Hey there im new to plc programming and I have tried to make an application witch could control the plc remotely .
Ethernet ethernet = new Ethernet("*REMOTE_IP*", 20256, EthProtocol.TCP, 3, 3000);
Now when im on the same network[same router] as the plc everything goes fine but once I try to reach it from a different network Im getting an exception at this part.
I have opened the 20256 and 20257 ports on the router and it still didnt worked.
any idea what might be wrong ? is there a chance that the plc it self reject the remote connection ?
*PLC model - V1040-T20B
Thanks in advanced