# SocketIODelegate - Socket connection closed, DriverState was Connected. Problem

**URL:** <https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [May 15, 2024, 3:35pm UTC](https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442 "2024-05-15T15:35:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [May 15, 2024, 3:35pm UTC](https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442/1 "2024-05-15T15:35:03Z")

</div>

Hello Everyone,

I'm having some troubles trying to connect to a PLC Productivity P2-550 CPU.

In the Log this is what I see:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/e/be88e6c58888062f4e1c68dfe60310f8cffbf63f.png)

In Wire Shark this is what I see:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/982586c7db67775be7a6c7944e51280051ebd610.png)

10.0.0.134 is the PLC  
10.0.0.222 Is my Laptop

In the gateway it looks like connected:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/a/dae10275d51746c59afe8e644ddf9e66522217b7.png)

But in the log you saw the connection is closed

I tried to create a Tag because i read in this forum a problem with the PLC must be active but I can't see the tag values.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/f/0ff7b46ef8672f1c50ce67edd9c915060865830d.png)

If you know how to handle this I really appreciate that.

Thank you

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 15, 2024, 3:42pm UTC](https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442/2 "2024-05-15T15:42:28Z")

</div>

Your wireshark capture doesn't include the breakage. You will have to capture until you get the breakage to figure this out.

---

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [May 15, 2024, 3:48pm UTC](https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442/3 "2024-05-15T15:48:48Z")

</div>

When the log shows the Error, wireshark shows this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/0/5076e3f7248a20ace1c0503129625bd95d25e17a.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/6/666e9dfec253aed65745ff9c1304b391a376c72d.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 15, 2024, 3:52pm UTC](https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442/4 "2024-05-15T15:52:08Z")

</div>

That shows `FIN` coming from the PLC out of the blue. Your PLC is breaking the connection.

I don't see an actual Modbus request in the few seconds before that point. Are you sure you are requesting something at least every ten seconds? Many devices chop off connections that are "idle" that long.

---

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [May 15, 2024, 3:57pm UTC](https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442/5 "2024-05-15T15:57:04Z")

</div>

> Are you sure you are requesting something at least every ten seconds?

Not sure to be honest, could you please indicate me how to do that?

Thank you

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [May 15, 2024, 3:58pm UTC](https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442/6 "2024-05-15T15:58:23Z")

</div>

Make at least one OPC tag with a pace (poll rate) of less than ten seconds.

---

<div class="post-metadata">

**Author:** ![Miguel\_Gomez](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@Miguel\_Gomez](https://forum.inductiveautomation.com/u/Miguel_Gomez)\
**Post date:** [May 16, 2024, 10:47pm UTC](https://forum.inductiveautomation.com/t/socketiodelegate-socket-connection-closed-driverstate-was-connected-problem/90442/7 "2024-05-16T22:47:57Z")

</div>

Thank you very much!
