# Redundancy with failover OPC Connection

**URL:** <https://forum.inductiveautomation.com/t/redundancy-with-failover-opc-connection/8656>\
**Category:** Ignition\
**Created:** [July 2, 2014, 9:49am UTC](https://forum.inductiveautomation.com/t/redundancy-with-failover-opc-connection/8656 "2014-07-02T09:49:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 2, 2014, 9:49am UTC](https://forum.inductiveautomation.com/t/redundancy-with-failover-opc-connection/8656/1 "2014-07-02T09:49:54Z")

</div>

We’ve planned to use Ignition 7.7 for a new project with the following architecture :  
2 Gateway in Redundancy mode with a warm backup.  
MASTER GW @IP1, BACKUP GW IP2  
We use KepserverEx to communicate with PLC.  
( ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:") sorry, uploading an architecture diagram doesn’t work in this topic forum ?)

We would like configure failover OPC Server Connection.  
Failover Connection Settings must be différent between MASTER and BACKUP  
(MASTER GW faileover opc server is @IP2, BACKUP GW faileover opc server is @IP1)

but these settings on the backup can’t be changed ???  
How to achive this functionnality ???

I tried settings MASTER GW faileover opc server is @IP2,  
the failover is ok, “switching to failoverConnect” in the log.  
It will be usefull to have a more visible information in the gateway opc serveur connection diagram ???

When the primary opc server come back, can we have an option, like for the redundancy ?  
Recovery Mode : Automatic / Manual, to switch back to the primaryopc server

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [July 2, 2014, 1:49pm UTC](https://forum.inductiveautomation.com/t/redundancy-with-failover-opc-connection/8656/2 "2014-07-02T13:49:13Z")

</div>

You could try using localhost instead of the IP addresses if they are on the same computer as Ignition.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 2, 2014, 6:40pm UTC](https://forum.inductiveautomation.com/t/redundancy-with-failover-opc-connection/8656/3 "2014-07-02T18:40:55Z")

</div>

For theprimary connection its ok but the failover connection is remote !

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [July 16, 2014, 11:26pm UTC](https://forum.inductiveautomation.com/t/redundancy-with-failover-opc-connection/8656/4 "2014-07-16T23:26:19Z")

</div>

Due to how redundancy works in general, there isn’t a quick way to accomplish this… however, I think you could work around the issue by using a little network trick: edit the [host](http://en.wikipedia.org/wiki/Hosts_(file)) file on each machine to give a symbolic name to the addresses. [Here](http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/) is one how-to.

The “hosts” file is what maps a symbolic name to an address on a machine… in other words, it’s something like your own DNS override. If you put a name like “opcserver”, you could map it to different addresses on each machine. Then, in ignition, instead of putting in an ip address, you would just put in “opcserver”.

It would be nice if we could handle this more directly, but this trick could help for now.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [July 17, 2014, 8:24am UTC](https://forum.inductiveautomation.com/t/redundancy-with-failover-opc-connection/8656/5 "2014-07-17T08:24:04Z")

</div>

![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")

Thanks Colby for the workaround !
