# Losing OPC Connection

**URL:** <https://forum.inductiveautomation.com/t/losing-opc-connection/9911>\
**Category:** General Discussion\
**Created:** [April 14, 2015, 6:55pm UTC](https://forum.inductiveautomation.com/t/losing-opc-connection/9911 "2015-04-14T18:55:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikehill100](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@mikehill100](https://forum.inductiveautomation.com/u/mikehill100)\
**Post date:** [April 14, 2015, 6:55pm UTC](https://forum.inductiveautomation.com/t/losing-opc-connection/9911/1 "2015-04-14T18:55:26Z")

</div>

Hello!

Whenever I change my IP address I lose connection to my OPC server.

How can I avoid this?

Thanks,

Mike

---

<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 14, 2015, 7:18pm UTC](https://forum.inductiveautomation.com/t/losing-opc-connection/9911/2 "2015-04-14T19:18:04Z")

</div>

Try this:

On the gateway under OPC-UA \> Settings try changing the Endpoint Address setting to be “localhost” instead of an IP. Change your OPC-UA connection to the local server to use localhost as well. Then restart the UA module.
