Troubleshooting
Why Node-RED on an IOT2050 shows port 1880 in use
Short answer
The port-in-use error means the AutoStart instance already owns port 1880, so keep autostart on and do not launch a second instance. From your PC, open the editor at the gateway's own interface address, for example 192.168.200.1:1880 on the X1P2 link, never 127.0.0.1:1880, which points at the PC itself.

On this page
A port-in-use error on the SIMATIC IOT2050 is good news: the AutoStart Node-RED instance is already running and owns port 1880, so your manual launch in the terminal is a duplicate that cannot bind. Keep autostart enabled, do not start a second instance, and open the editor from your PC at the gateway's own interface address with the port, for example 192.168.200.1:1880 on the X1P2 link. The address 127.0.0.1:1880 in the PC browser can never reach the gateway, because the loopback address identifies the device the connection starts on, and on the PC that is the PC itself.
Why the port is already in use #
A listening socket is an endpoint one process owns. While the autostarted Node-RED runtime holds the address-and-port pair on port 1880, a second manual launch fails with a port-in-use error. Starting from example image version 1.6 of the gateway's firmware, Node-RED autostart is disabled by default and is enabled in the menu under Software, then Manage Autostart Options, then Autost Node-RED; on units where it is enabled, that instance is the intended runtime. The decision: if the terminal reports the port in use, confirm the owner is the autostarted instance, then stop launching manually and move to the browser check below.
Why unticking autostart made things worse #
Unticking AutoStart node-red lets the manual command succeed and print that the server runs on 127.0.0.1:1880, which only proves a runtime starts on the gateway. It breaks unattended operation, because the manual instance lives and dies with your terminal session. Keep one startup method responsible for the runtime, and on the IOT2050 that is the autostart option. The node-red command in the PC command prompt is a third, separate runtime on the PC; it opens in the browser because the browser and the runtime are on the same machine, and it proves nothing about gateway access.
The address that works from the PC #
The loopback address 127.0.0.1 identifies whichever device the connection starts on: on the gateway it reaches the gateway's Node-RED, in the PC browser it asks the PC. From the PC, the editor address is the HTTP scheme, the gateway interface address and the port, in that order. For a direct cable on the X1P2 port, that interface commonly carries 192.168.200.1, so the example address is 192.168.200.1:1880; read the actual address from the gateway's network configuration rather than assigning this example blindly. If your work on the same link touches which interface accepts management traffic, the article on restricting SSH access to the X1P2 interface covers that side of the port.
When the gateway address still fails #
Read the detailed connection error behind the browser's unreachable message, because it names the failing branch:
- Connection refused: no listener or an explicit rejection. Recheck the process state and the socket binding on the gateway.
- Listener bound only to loopback: the runtime accepts local connections only. Configure the listening host for the connected interface through the installed Node-RED settings.
- Connection times out: addressing, routing or filtering failed. Verify the link state at both ends of the cable, the PC's address and subnet against the gateway interface, and any filtering rules in the path.
Expose the editor only to the engineering network it must serve, with the installation's authentication enabled, since an open editor on a plant network is a control path, not just a web page.
Restore the single automatic runtime #
- Stop any manually launched instance on the gateway through its normal shutdown and confirm the socket is released.
- Re-enable AutoStart node-red under Software, Manage Autostart Options, and apply the restart the management environment provides.
- Confirm one Node-RED process on the gateway owns port 1880 with a binding that accepts the X1P2 interface.
- Open the gateway interface address with the port in the PC browser and confirm the flows shown are the gateway's, not the PC runtime's.
Once the editor opens at the gateway address, the MindSphere onboarding flows on that runtime are the ones being served, and the PC command prompt is no longer part of the picture.
Questions asked
Why does 127.0.0.1:1880 work in a terminal on the IOT2050 but not in my PC browser?
The loopback address always identifies the device the connection starts on. On the gateway it reaches the local Node-RED runtime; in the PC browser it asks the PC itself for port 1880, so the browser needs the gateway's interface address instead.
Should I untick AutoStart node-red and launch Node-RED by hand?
No. Unticking it removes the collision only because the automatically started instance stops owning the port. For unattended operation one startup method must own the runtime, and the gateway's autostart option is the one designed for that; a manual launch dies with the terminal session.
The browser still says the site can't be reached at the gateway address. What next?
Note the detailed connection error, then read the socket binding on the gateway. Connection refused means no listener or an explicit rejection; a timeout means the address, route or filtering failed. A listener bound only to loopback must be configured for the connected interface before remote access works.


