# TCP driver reconnection problem

**URL:** <https://forum.inductiveautomation.com/t/tcp-driver-reconnection-problem/20882>\
**Category:** Ignition\
**Created:** [November 15, 2018, 1:29pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-reconnection-problem/20882 "2018-11-15T13:29:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![denis.palomanes](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@denis.palomanes](https://forum.inductiveautomation.com/u/denis.palomanes)\
**Post date:** [November 15, 2018, 1:29pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-reconnection-problem/20882/1 "2018-11-15T13:29:10Z")

</div>

Hello,

I have a problem with the TCP driver reconnection. I have configured the TCP driver and it connects correctly to a TCP server located in another Windows server, the problem comes when the server(Windows) of the TCP server has a restart, the TCP driver doesn’t reconnect to the TCP server until I push the “Save” button of the Ignition “Gateway\>Devices\>TCP\_driver1”.

I have configured the option “Inactivity Timeout” to 60 second, this works when the TCP server fails(the software), after 60 seconds, the TCP driver try to disconnect/connect. The problem is when the Windows server is restarted, the TCP driver can not reconnect until I press the “Save” button.

What Can I do?

I’m using Ignition 7.9.9

Thank you,

---

<div class="post-metadata">

**Author:** ![Michiel.demiddelaer](https://avatars.discourse-cdn.com/v4/letter/m/ac8455/32.png) [@Michiel.demiddelaer](https://forum.inductiveautomation.com/u/Michiel.demiddelaer)\
**Post date:** [March 24, 2021, 12:27pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-reconnection-problem/20882/2 "2021-03-24T12:27:15Z")

</div>

I’ve got the same issue here with version 7.9.5. Did you find any work around ?

Kind regards,

---

<div class="post-metadata">

**Author:** ![Alexandre\_Potvin](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Alexandre\_Potvin](https://forum.inductiveautomation.com/u/Alexandre_Potvin)\
**Post date:** [October 5, 2022, 6:17pm UTC](https://forum.inductiveautomation.com/t/tcp-driver-reconnection-problem/20882/3 "2022-10-05T18:17:41Z")

</div>

Same problem on 8.1

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [October 6, 2022, 4:49am UTC](https://forum.inductiveautomation.com/t/tcp-driver-reconnection-problem/20882/4 "2022-10-06T04:49:37Z")

</div>

You can accomplish the same thing via scripting:

```python
# Replace DeviceName below with name of TCP connection device.
system.device.restart("DeviceName") 

```

The trick is deciding when to run the script. You could call it from a button, but if you want it to reconnect automatically you'll have to deduce this from something else you know in your application. Or maybe there's something I missed in the TCP device tags that could be used to deduce a loss of connection.
