# Intercept 'Gateway Connection Lost' retarget if server down

**URL:** <https://forum.inductiveautomation.com/t/intercept-gateway-connection-lost-retarget-if-server-down/5844>\
**Category:** Ignition\
**Created:** [February 11, 2013, 7:08pm UTC](https://forum.inductiveautomation.com/t/intercept-gateway-connection-lost-retarget-if-server-down/5844 "2013-02-11T19:08:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![accyroy](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/accyroy/32/3386_2.png) [@accyroy](https://forum.inductiveautomation.com/u/accyroy)\
**Post date:** [February 11, 2013, 7:08pm UTC](https://forum.inductiveautomation.com/t/intercept-gateway-connection-lost-retarget-if-server-down/5844/1 "2013-02-11T19:08:36Z")

</div>

Hi all! I am currently working on a project that has multiple HMI’s around the plant that in normal use, run as a client of the main gateway server. These HMI’s also have the Panel edition of Ignition running as well, as a backup to make sure we don’t lose local control if the server goes down.  
At bootup I check if the server is up and if so I launch the gateway client, if it is down then I launch the panel edition client.  
Is there a scripting function I can run in the client that detects if a server is up or down. I plan to use system.util.retarget to change between the projects.  
I also want this to be seamless for the operators, I don’t want the Gateway Connection Lost dialog, I just want to retarget to the Panel edition and back again when the server is back up.  
Is this possible within ignition? The clients are all running Linux so I can write a script outside of Ignition, I would rather do it all within though.

---

<div class="post-metadata">

**Author:** ![Michael.Stofan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/michael.stofan/32/3342_2.png) [@Michael.Stofan](https://forum.inductiveautomation.com/u/Michael.Stofan)\
**Post date:** [February 15, 2013, 12:43am UTC](https://forum.inductiveautomation.com/t/intercept-gateway-connection-lost-retarget-if-server-down/5844/2 "2013-02-15T00:43:09Z")

</div>

Unfortunately no, there is not way to do this from within Ignition. The first thing the client will do when it loses connection to the gateway is pause the python scripting engine, so you won’t have any chance to retarget.

This is a feature that is definitely on our radar, it just hasn’t had it’s turn yet.

---

<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:** [June 24, 2017, 4:20am UTC](https://forum.inductiveautomation.com/t/intercept-gateway-connection-lost-retarget-if-server-down/5844/3 "2017-06-24T04:20:21Z")

</div>

In ignition 7.9.3, are the script still paused when the gw connection is lost ?  
I have the same need to retarget the client in this case 😒

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [June 26, 2017, 2:59pm UTC](https://forum.inductiveautomation.com/t/intercept-gateway-connection-lost-retarget-if-server-down/5844/4 "2017-06-26T14:59:17Z")

</div>

Mazeyrat,

I am in a project with an Ignition Edge Panel and a regular GW. I am planning on using the Edge panel as is described above using local fallback, but I haven’t got there yet. There is a little info about setup on this page:

[https://docs.inductiveautomation.com/display/DOC79/Gateway+Setup](https://docs.inductiveautomation.com/display/DOC79/Gateway+Setup)

Do you think this is what you need? If so let me know how it goes when you implement. If I get there before you comment back, I’ll try to put my experience back on this thread.

-Caleb

---

<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:** [June 26, 2017, 3:13pm UTC](https://forum.inductiveautomation.com/t/intercept-gateway-connection-lost-retarget-if-server-down/5844/5 "2017-06-26T15:13:58Z")

</div>

Hi caleb,

Unfortunately not really according to this post :

> [@7.9.2RC1Local fallback Gateway opt on native client launcher](http://forum.inductiveautomation.com/t/7-9-2rc1local-fallback-gateway-opt-on-native-client-launcher/13966):
>
> In the 7.9.2-RC1 changelog, you mention this new features : Native Client Launchers / Added Functionality : Local fallback Gateway option has now been added to native launchers. The configured local fallback Gateway is used if the configured primary/backup Gateways cannot be contacted after a specified number of connect attempts. How to configure it from the native client launcher ? from the commande line ? client launcher parameters ? [:scratch:]

My computer with Ignition vision client has no local ignition installed. When the client lose the connection with a first redundant gateway, I need to retarget it to another redundant gateway (with the magic of remote tags, all my gateway can operate the full system)

As for now, it's not possible 😭 (no such Ignition feature built-in and not possible by script)

---

<div class="post-metadata">

**Author:** ![Caleb\_Bohon](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/caleb_bohon/32/3293_2.png) [@Caleb\_Bohon](https://forum.inductiveautomation.com/u/Caleb_Bohon)\
**Post date:** [June 26, 2017, 3:30pm UTC](https://forum.inductiveautomation.com/t/intercept-gateway-connection-lost-retarget-if-server-down/5844/6 "2017-06-26T15:30:24Z")

</div>

Ok. I recently had problems with client connections (my problem was that DNS was not always reliablly creating the connection I needed for both remote and local clients), and was told to change the settings under Redundancy \> HTTP Addresses.

Turn off auto detect, then list all addresses that the client might connect to.

I don’t know if that will help you, especially if you don’t have Ignition native redundancy, but it might work if the servers that have the redundant projects have the same names for them. You might call support and ask if that would fix your case.
