# Bind OPC Server IP to VPN IP

**URL:** <https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171>\
**Category:** Ignition\
**Created:** [April 29, 2021, 6:15pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171 "2021-04-29T18:15:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [April 29, 2021, 6:15pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171/1 "2021-04-29T18:15:16Z")

</div>

Has anyone been able to bind the Ignition OPC-UA server to a different IP address? More specifically to the VPN IP that the computer is receiving, not the main WiFi or Ethernet IP. I have gotten it to work with the WiFi IP thought but not the VPN IP.

I have set the OPC-UA settings bind address to the VPN IP address and can’t the the OPC server to connect, can’t even get the discovery part to find anything.

Now I changed it to 0.0.0.0 and it discovered the 127.0.0.1 OPC, I selected and used that and it still is failing.

For my cloud environment to connect to this OPC server it needs to be using a static IP that I allow on the cloud, which I have already made that change.

Anyone have any suggestions on this?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 29, 2021, 6:27pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171/2 "2021-04-29T18:27:35Z")

</div>

Assuming all the networking stuff is set up correctly I would expect the following settings to work:

Bind Address List: `0.0.0.0`  
Endpoint Address List: `<hostname>, <localhost>, VPN_IP_ADDR`

Restart Ignition after saving the settings. First make sure the loopback connection still works. It should, without any changes from its default (i.e. “opc.tcp://localhost:62541/discovery” should still lead to a connection).

Then from what I’ve gathered you have an Ignition or some other OPC UA client in the cloud trying to connect down to your local gateway. This is where you might have to ensure network/firewall stuff is taken care of. If it is then you’ll be able to reach the gateway at `opc.tcp://VPN_IP_ADDR:62541/discovery` or at the very least telnet to `VPN_IP_ADDR:62541`.

---

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [April 29, 2021, 6:37pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171/3 "2021-04-29T18:37:52Z")

</div>

Why should I used port 62541 instead of 4096?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 29, 2021, 6:44pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171/4 "2021-04-29T18:44:55Z")

</div>

Maybe it’s 4096. I’m assuming defaults for 8.0. If you upgraded from 7.9 it’s still 4096. If you’re still on 7.9 you won’t get this to work and none of these settings exist.

---

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [April 29, 2021, 6:52pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171/5 "2021-04-29T18:52:20Z")

</div>

Are you saying this won’t work at all for 7.9?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 29, 2021, 6:57pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171/6 "2021-04-29T18:57:20Z")

</div>

I think it’s very unlikely because ~~7.9 doesn’t allow 0.0.0.0~~ I don’t think 0.0.0.0 works right in 7.9, it doesn’t allow multiple bind addresses, and doesn’t have this separate endpoint address list setting.

---

<div class="post-metadata">

**Author:** ![jramirez3](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jramirez3](https://forum.inductiveautomation.com/u/jramirez3)\
**Post date:** [April 29, 2021, 8:04pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171/7 "2021-04-29T20:04:10Z")

</div>

I can say that it does work and here’s why.

In our cloud we have 2 different Ignition servers, one that has the OPC-UA module only and the other has alot more modules (comms and production server).  
All the devices that the production server needs to view, are viewed using the OPC-UA server on the comms server (where all the devices are created).

That tells me that it should work. Right?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 29, 2021, 8:26pm UTC](https://forum.inductiveautomation.com/t/bind-opc-server-ip-to-vpn-ip/46171/8 "2021-04-29T20:26:05Z")

</div>

Sure, but those in the same network with real network adapters.

If this is 7.9 then you can try setting the “Endpoint Address” server setting to either 0.0.0.0 or the VPN IP. Any change requires a restart. It’s going to work or it’s not. I don’t know what else to tell you.
