I am trying to make the Ignition OPC client to connect to the OPC UA on a PLC using Port forwarding. I have problems so that’s why I am asking - does Ignition support Port forwarding?
(Server with Ignition is on WAN, PLC on LAN. Between a switch with the NAPT table)
I use version 8.0
Yes, but you may need to fiddle with some of the settings manually, or set the Host Override setting to the WAN address yourself.
How far are you getting and what errors?
This is what the environment looks like:
Server IP 192.168.200.2
Switch IP External 192.168.100.100
Switch IP Internal 192.168.1.1
PLC IP 192.168.1.3
NAPT Ext->Internal 192.168.100.100:100 -> 192.168.1.3:4840
When trying to connect, log shows “connection timed out: /192.168.1.3:4840”
So, if I add in switch:
NAPT Ext->Internal 192.168.100.100:4840 -> 192.168.1.3:4840
Connection works
I then get:
Discovery URL: opc.tcp://192.168.100.100:100
Endpoint URL:opc.tcp://192.168.1.3:4840
So, from what I understand, the OPC client is trying to connect to 192.168.100.100:4840
But it should connect through 192.168.100.100:100 in my opinion.
These settings for discovery and endpoint URL seem correct:
Discovery URL: opc.tcp://192.168.100.100:100
Endpoint URL: opc.tcp://192.168.1.3:4840
There’s an advanced setting on the connection called Host Override, try setting it to 192.168.100.100:100
.
Thanks for quick help.
Funny thing is that I got to have the NAPT row 192.168.100.100:4840 → 192.168.1.3:4840 when creating connection.
When I have added the :100 in Host Override, I can remove the NAPT-row.
Anyway, It looks at it works now 
1 Like