IMD SolutionComputing LibraryShop main store

Troubleshooting

Node-RED ControlLogix offline: TCP timeout after ping works

Edge computing and IIoT Published 5 min read By IMD Solution engineering team

Short answer

The logged TCP connection timeout means Node-RED never completed the TCP session to the controller on port 44818, and ping success proves nothing about that session. Test the TCP connection from the Node-RED host, check host firewall and network ACLs, then controller connection limits — and leave tag names alone until TCP connects.

On this page
  1. Read the error stage before anything else
  2. Why ping passing proves nothing here
  3. Test the TCP connection from the Node-RED PC
  4. Check controller connection availability
  5. Only then look at tags
  6. The decision for each case
  7. Questions asked

When your Node-RED connection node to a ControlLogix shows Offline, ping to the PLC succeeds, and the debug pane logs an error saying a TIMEOUT occurred while attempting to establish a TCP connection with the controller, the EtherNet/IP session on TCP port 44818 never opened. Ping proves ICMP reachability only. Work from the Node-RED PC outward: test the TCP connection itself, check the host firewall and network path, then controller-side connection availability. Do not touch tag names yet — a missing tag fails requests only after a connection opens.

Read the error stage before anything else #

The logged timeout names the exact stage: TCP connection establishment. That rules out an entire class of causes and points at another. Use the observation table to pick your next check.

Observation What it points to
Ping succeeds, node logs a TCP connection timeout IP routing works for ICMP; the TCP session on port 44818 is not completing. Check filtering, the path, and controller connection availability.
Connection opens, then reads or writes fail Tag names, scope, data types or access. That is a later stage than your error.
PLC still controls the process The control task runs; that says nothing about whether an external CIP session can be accepted.

Because Node-RED and the PLC have both already been restarted, repeating either step adds nothing. Restarts clear a stuck runtime; they do not change a firewall rule, a VLAN or routing change, or a controller at its connection limit.

Why ping passing proves nothing here #

Ping sends ICMP echo requests. EtherNet/IP communication opens a TCP connection to the controller on port 44818, then registers a CIP session on it. A host firewall, endpoint security, a network ACL, a routing or VLAN change, an unresponsive listener, or a controller that cannot accept another connection all leave ping working while that TCP handshake never completes. This is the same distinction that separates a generic gateway-online-but-PLC-offline state: when an edge gateway is online but the PLC is offline, the link state alone never identifies which stage failed.

A related trap: another package on the same PC can hold port 44818. FactoryTalk Linx and similar drivers bind to that port, and when another driver is bound to it, explicit messaging from a second client can fail. Check what else runs on the Node-RED host before blaming the network.

Test the TCP connection from the Node-RED PC #

Run the test from the same PC that runs Node-RED, against the controller address configured in the node, for example 192.168.1.20.

  1. Open a TCP test to the controller on port 44818 — for example, in PowerShell on a Windows host: Test-NetConnection 192.168.1.20 -Port 44818. A TcpTestSucceeded : True result means the handshake completes and the problem is above TCP, in the node configuration or package.
  2. If the test fails, read the host firewall and endpoint-security logs at the failure time. Look for a blocked outbound rule to the controller address.
  3. Ask the network administrator to check ACLs, VLAN membership and routing along the PC-to-PLC path, and whether anything changed on the network today. A connection that ran for a month and then died with no PLC change points at the network or the host, not the controller project.
  4. If another authorized client is available on the same segment, have it attempt a session. If it also fails, the shared path or the controller is the suspect; if only the Node-RED host fails, focus on that host.

Do not disable security controls broadly to test a theory. Have the administrator verify or add a narrowly scoped rule for the one connection required.

Check controller connection availability #

If the TCP test fails from more than one client, look at the controller. A ControlLogix has a limited number of CIP connections; when HMI clients, programming workstations and other drivers consume them, a new session request is refused or ignored even though the controller runs normally. Open the controller's diagnostics and connection statistics (in the programming software or the controller's web page) and check:

  • the count of active connections against the controller's supported maximum,
  • whether a new client, a second HMI, or an additional polling instance connected recently,
  • whether old sessions from retired clients are still holding connections after a network change,

and whether another driver instance on some PC is holding sessions it no longer needs. Free or restart the offending client rather than power-cycling the running PLC again. The same failure stage explains why node-red-contrib-cip EtherNet/IP fails with a Mitsubishi FX5U: the session request is a different animal from the tag request that follows it.

Only then look at tags #

Once the node reports the connection established, verify each requested tag against the controller project: spelling, program or controller scope, data type, and read versus write access. A wrong tag name produces a request error in the node's output, not a connection timeout. Change one item at a time and retest, and watch for repeated disconnects over normal operation — a brief successful connection does not prove the underlying limit or network issue is resolved.

The decision for each case #

  • TCP test to port 44818 fails from the Node-RED PC and from a second client: controller-side — check the connection count and diagnostics, and stop excess clients.
  • TCP test fails only from the Node-RED PC: host-side — firewall or endpoint security rule, or something else on that PC bound to 44818; let the administrator scope one rule.
  • TCP test succeeds but the node still times out: the node configuration or the installed EtherNet/IP package on that host — compare the configured address and port with the test, and read the Node-RED runtime log for package or deployment changes.
  • Connection opens and reads fail: tags — names, scope and types, in that order.

Questions asked

What port does Node-RED use to reach a ControlLogix over EtherNet/IP?

EtherNet/IP uses TCP port 44818 for the CIP session. A ping does not touch that port, so test a TCP connection to 44818 from the Node-RED PC to separate an ICMP path that works from a blocked or unavailable TCP session.

Can a missing tag cause the TCP connection timeout?

No. A missing or misnamed tag fails a request after the session is open; the timeout you logged happens before any tag is addressed. Check tag names, scope and data type only after the node shows the connection established and individual reads still fail.

Why do restarts not fix this?

Restarts clear a stuck runtime or controller, but they do not change a firewall rule, a routing or VLAN change, or a controller at its connection limit. Since Node-RED and the PLC were already restarted, spend the next step on a measured TCP test and the logs instead of repeating them.

Another client can still connect to the same PLC. What does that tell me?

The controller accepts sessions and the shared network path works, so focus on the Node-RED host: its host firewall or endpoint security, its own configuration, and any change to the Node-RED runtime or the installed EtherNet/IP package.

Keep reading

  • Troubleshooting

    Why the Node-RED editor is unavailable when a ctrlX CORE goes offline

    When a ctrlX CORE goes offline and the Node-RED editor answers 'The app is currently not available', the fault in the documented case was not the network: it was the installed palette node-red-contrib-cip-st-ethernet-ip 2.0.3 in the Node-RED app 3.6.5+4.0.9-ctrlx. Confirm the browser still reaches the controller, capture the diagnostic logbook with debug messages on, then replace the ST package with node-red-contrib-cip-ethernet-ip.

    Edge computing and IIoT

  • Troubleshooting

    Fix empty pin dropdowns in Node-RED RevPi nodes

    The pin list in the RevPi nodes is served by the separate noderedrevpinodes-server systemd unit, not by the Node-RED runtime. Start and enable that unit, save the PiCtory layout as start-config in physical module order, confirm node-red-contrib-revpi-nodes at 1.0.6 or newer, and restart the server before the nodered service. If pins vanish after the first read, re-configure the DIO inputs in PiCtory and reboot.

    Edge computing and IIoT

  • How-to

    MQTT to Modbus TCP with Node-RED on an edge gateway

    Yes: Node-RED with the node-red-contrib-modbus package can serve MQTT data to a SCADA client as Modbus TCP. Read the RTU device in Node-RED first, give the Modbus server node a port nothing else owns, and scale each MQTT payload to one integer per holding register before the first end-to-end test.

    Edge computing and IIoT

Ignition connection pool timeout after redundancy failover