# Cannot access to node red

**URL:** <https://discourse.nodered.org/t/cannot-access-to-node-red/88434>\
**Category:** General\
**Created:** [2 June 2024 08:16 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434 "2024-06-02T08:16:41Z")\
**Posts on this page:** 16\
**Page:** 2

<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:** [2 June 2024 16:32 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/21 "2024-06-02T16:32:25Z")

</div>

> [@Chow0605](#):
>
> opened my system to the internet means???

Have you allowed EXTERNAL access INTO your Node-RED?  
Have you opened ports on your router so that you can access Node-RED when you are NOT at home (i.e. from the internet)

---

<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:** [2 June 2024 16:39 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/22 "2024-06-02T16:39:28Z")

</div>

And, did it stop working when you changed something?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 June 2024 16:49 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/23 "2024-06-02T16:49:13Z")

</div>

Your screen capture shows that even after you stop nodered, _something_ is using port 1880.

Please run these commands in a terminal window on the Pi and show us the result:

```auto
sudo netstat -aon | grep 1880 # This shows what application is using port 1880
sudo systemctl disable nodered # Prevents Node-red automatically running at boot
sudo systemctl stop nodered # Stops nodered
sudo systemctl status nodered # Shows nodered status
sudo netstat -aon | grep 1880

```

When it is not running, the result you want to see from systemctl status nodered is

```auto
● nodered.service - Node-RED graphical event wiring tool
     Loaded: loaded (/lib/systemd/system/nodered.service; disabled; vendor preset: enabled)
     Active: inactive (dead)

```

Note "disabled" and "inactive"

---

<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:** [2 June 2024 16:52 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/24 "2024-06-02T16:52:58Z")

</div>

> [@jbudd](#):
>
> Your screen capture shows that even after you stop nodered, _something_ is using port 1880.

Well spotted - potentially another terminal where they ran `node-red`?

---

<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:** [2 June 2024 16:53 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/25 "2024-06-02T16:53:50Z")

</div>

Because node red is hung out may take some time to stop.  
After telling it to stop run  
`systemctl status nodered`  
Until it says it is stopped.

---

<div class="post-metadata">

**Author:** ![Chow0605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chow0605/32/91058_2.png) [@Chow0605](https://discourse.nodered.org/u/Chow0605)\
**Post date:** [2 June 2024 17:15 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/26 "2024-06-02T17:15:14Z")

</div>

still same

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/50499e8c2ab4a1d4ad91420fc4d5dd5fa760f826.jpeg)

---

<div class="post-metadata">

**Author:** ![Chow0605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chow0605/32/91058_2.png) [@Chow0605](https://discourse.nodered.org/u/Chow0605)\
**Post date:** [2 June 2024 17:15 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/27 "2024-06-02T17:15:58Z")

</div>

i dont think so, i only open node red when i open my raspberry pi

---

<div class="post-metadata">

**Author:** ![Chow0605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chow0605/32/91058_2.png) [@Chow0605](https://discourse.nodered.org/u/Chow0605)\
**Post date:** [2 June 2024 17:20 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/28 "2024-06-02T17:20:40Z")

</div>

insert the command according to urs

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/4/f4ab1c6570e4d2aff98e232dd9220cf0e602034d.png)

---

<div class="post-metadata">

**Author:** ![Chow0605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chow0605/32/91058_2.png) [@Chow0605](https://discourse.nodered.org/u/Chow0605)\
**Post date:** [2 June 2024 17:23 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/29 "2024-06-02T17:23:28Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/0/f06f42c670e72fc8d91db455f46087cc123e6a0d.jpeg)

---

<div class="post-metadata">

**Author:** ![Chow0605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chow0605/32/91058_2.png) [@Chow0605](https://discourse.nodered.org/u/Chow0605)\
**Post date:** [2 June 2024 17:26 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/30 "2024-06-02T17:26:25Z")

</div>

tried `node-red --safe` after some time and it still shows that port in use

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 June 2024 17:35 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/31 "2024-06-02T17:35:57Z")

</div>

I think CLOSE\_WAIT shows that the port is being kept open for some connected process which is not responding. Most likely browser windows. It should timeout after 4 minutes.

So leave the Pi alone for 4 minutes and run the netstat command again. If there are no more CLOSE\_WAIT lines then you should be able to start it in safe mode.  
While you wait, reboot your PC.

Can we clarify the question of your Pi being accessible from the internet:  
Have you ever made any changes in your network router to "forward" port 1880 so that you can access Node-red when you are away from home?

---

<div class="post-metadata">

**Author:** ![Chow0605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chow0605/32/91058_2.png) [@Chow0605](https://discourse.nodered.org/u/Chow0605)\
**Post date:** [2 June 2024 17:43 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/32 "2024-06-02T17:43:29Z")

</div>

alright i will wait a few minutes..

i dont think so, all i did to this raspberry is only changing the static ip address, while in the coding part i use the MQTT, others i think is default

---

<div class="post-metadata">

**Author:** ![Chow0605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chow0605/32/91058_2.png) [@Chow0605](https://discourse.nodered.org/u/Chow0605)\
**Post date:** [2 June 2024 17:51 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/33 "2024-06-02T17:51:35Z")

</div>

when i reboot the raspberry and type the command, it looks like nothing is using the 1880 port

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/e/3e31a03d6f321b94dcd586f8b920dcaa9f12b5d7.png)

---

<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:** [2 June 2024 18:22 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/34 "2024-06-02T18:22:05Z")

</div>

Presumably you then tried running node red again in safe mode?

---

<div class="post-metadata">

**Author:** ![Chow0605](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chow0605/32/91058_2.png) [@Chow0605](https://discourse.nodered.org/u/Chow0605)\
**Post date:** [3 June 2024 06:29 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/35 "2024-06-03T06:29:52Z")

</div>

yeah! i try and i finally can get into it... i guess i did not fully stopped the node red ...  
THANKS GUYSSSS

---

<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:** [1 September 2024 06:30 UTC](https://discourse.nodered.org/t/cannot-access-to-node-red/88434/36 "2024-09-01T06:30:45Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/cannot-access-to-node-red/88434.md?page=1)
