# Issues with tcp request dropping devices off the network?

**URL:** https://discourse.nodered.org/t/issues-with-tcp-request-dropping-devices-off-the-network/43388
**Category:** General
**Created:** [30 March 2021 08:34 UTC](https://discourse.nodered.org/t/issues-with-tcp-request-dropping-devices-off-the-network/43388 "2021-03-30T08:34:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![thecrane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thecrane/32/39506_2.png) [@thecrane](https://discourse.nodered.org/u/thecrane)
#### Post date: [30 March 2021 08:34 UTC](https://discourse.nodered.org/t/issues-with-tcp-request-dropping-devices-off-the-network/43388/1 "2021-03-30T08:34:35Z")

</div>

Okay, so here's a strange one that I'm just hoping someone can shed some light on.

I have a house alarm with an IP module. This module connects to my network via a Cat5 cable, and allows me to open up a TCP connection to listen for changes in status (i.e. motion triggered, alarm armed etc.)

It has been working brilliantly for months, and I have a node-red flow with a tcp-request node that opens the connection, and has the return set to "never - keep connection open".

However, over the last few weeks/months, every few days the module just drops off the network. I can still see blinking lights on my switch, and on the module itself indicating a connection, but the TCP connection is lost and I can't ping the module.

I've been using Wireshark to sniff the packets, and all it shows is a bunch of successful TCP connections, and then the module sending out ARP requests to find the address of the gateway, and getting a response. But then, out of nowhere, I see some TCP retransmission issues - and then, it's gone. All that follows is the endless list of my Raspberry Pi (running node-red) ARP requesting "Who has 192.x.x.x?" and getting no response from the module.

I then have to factory reset the module, set it up again, and then it works for a week or so and then repeats.

The alarm company swears they've had no issues with the firmware I'm using, and they're claiming it is a network problem. But nothing in my network has changed.

So I'm just wondering if there is something I'm doing wrong with the TCP request node and/or if there is a better way to do what I'm doing that won't cause this error.

Any help would be greatly appreciated!

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [30 March 2021 08:47 UTC](https://discourse.nodered.org/t/issues-with-tcp-request-dropping-devices-off-the-network/43388/2 "2021-03-30T08:47:30Z")

</div>

Welcome to the forum @thecrane

If you can normally ping it but can't ping it any more then it isn't a node-red issue. Can you ping it from another device on the network? That would rule out the device running node-red. Have you tried resetting the router?

Edit: Also you say you have to do a factory reset, does that mean a power cycle does not work? If you have to do a factory reset I can't see how it can be anything other than the device.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [30 March 2021 09:05 UTC](https://discourse.nodered.org/t/issues-with-tcp-request-dropping-devices-off-the-network/43388/3 "2021-03-30T09:05:51Z")

</div>

> [@thecrane](#):
>
> I then have to factory reset the module, set it up again, and then it works for a week or so and then repeats.

I would strongly suggest this module is at fault. Even if node-red or your flow is "upsetting" it (with ill timed commands etc) it still shouldnt fall over. And to add a further nail, the fact restarting this module restores connectivity implicates it further.

---

<div class="post-metadata">

### Author: ![thecrane](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thecrane/32/39506_2.png) [@thecrane](https://discourse.nodered.org/u/thecrane)
#### Post date: [30 March 2021 20:28 UTC](https://discourse.nodered.org/t/issues-with-tcp-request-dropping-devices-off-the-network/43388/4 "2021-03-30T20:28:31Z")

</div>

Great - thanks everyone. I figured it must be the hardware. I'll try and get a new module to test.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [29 May 2021 20:29 UTC](https://discourse.nodered.org/t/issues-with-tcp-request-dropping-devices-off-the-network/43388/5 "2021-05-29T20:29:30Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
