# Node-RED Raspi refuses connection when i try to connect with my PC browser

**URL:** https://discourse.nodered.org/t/node-red-raspi-refuses-connection-when-i-try-to-connect-with-my-pc-browser/55679
**Category:** General
**Created:** [25 December 2021 10:40 UTC](https://discourse.nodered.org/t/node-red-raspi-refuses-connection-when-i-try-to-connect-with-my-pc-browser/55679 "2021-12-25T10:40:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![LouisV](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@LouisV](https://discourse.nodered.org/u/LouisV)
#### Post date: [25 December 2021 10:40 UTC](https://discourse.nodered.org/t/node-red-raspi-refuses-connection-when-i-try-to-connect-with-my-pc-browser/55679/1 "2021-12-25T10:40:32Z")

</div>

I just installed and started Node-RED on my raspberry pi for the first time and (and least to me) it doesn't look like there's any major issues with running.

```auto
pi@raspiLV:~ $ node-red-start

Start Node-RED

Once Node-RED has started, point a browser at http://192.168.0.118:1880
On Pi Node-RED works better with the Firefox or Chrome browser

Use node-red-stop to stop Node-RED
Use node-red-start to start Node-RED again
Use node-red-log to view the recent log output
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot
Use sudo systemctl disable nodered.service to disable autostart on boot

To find more nodes and example flows - go to http://flows.nodered.org

Starting as a systemd service.
25 Dec 10:15:07 - [info]
Welcome to Node-RED
===================
25 Dec 10:15:07 - [info] Node-RED version: v2.1.4
25 Dec 10:15:07 - [info] Node.js version: v14.18.2
25 Dec 10:15:07 - [info] Linux 5.10.17-v7l+ arm LE
25 Dec 10:15:08 - [info] Loading palette nodes
25 Dec 10:15:09 - [info] Settings file : /home/pi/.node-red/settings.js
25 Dec 10:15:09 - [info] Context store : 'default' [module=memory]
25 Dec 10:15:09 - [info] User directory : /home/pi/.node-red
25 Dec 10:15:09 - [warn] Projects disabled : editorTheme.projects.enabled=false
25 Dec 10:15:09 - [info] Flows file : /home/pi/.node-red/flows.json
25 Dec 10:15:09 - [info] Creating new flow file
25 Dec 10:15:09 - [warn]
---------------------------------------------------------------------
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
---------------------------------------------------------------------
25 Dec 10:15:09 - [info] Server now running at http://127.0.0.1:1880/
25 Dec 10:15:09 - [info] Starting flows
25 Dec 10:15:09 - [info] Started flows

```

But when i try to connect to [http://127.0.0.1:1880/](http://127.0.0.1:1880/) on my PC browser it just gives me "ERR\_CONNECTION\_REFUSED"

I have tried to safe start it because that seems to be a common solution when you can't connect, but in safe mode i get the exact same results.

Thank you in advance for anyone willing to help.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [25 December 2021 10:51 UTC](https://discourse.nodered.org/t/node-red-raspi-refuses-connection-when-i-try-to-connect-with-my-pc-browser/55679/2 "2021-12-25T10:51:08Z")

</div>

Hi @LouisV,

Welcome to the forum.

You need to use the IP address of the Pi in place of 127.0.0.1.

The 127 address is always the local address of the computer you are using. So you'd use that address if you were running the browser in the same device as Node-RED.

---

<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: [25 December 2021 15:28 UTC](https://discourse.nodered.org/t/node-red-raspi-refuses-connection-when-i-try-to-connect-with-my-pc-browser/55679/3 "2021-12-25T15:28:33Z")

</div>

```auto
25 Dec 10:15:09 - [info] Server now running at http://127.0.0.1:1880/

```

This message could be made more helpful by including the server IP address instead of 127...

I know it does quote the real IP address earlier in the startup output.

---

<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: [8 January 2022 15:29 UTC](https://discourse.nodered.org/t/node-red-raspi-refuses-connection-when-i-try-to-connect-with-my-pc-browser/55679/4 "2022-01-08T15:29:12Z")

</div>

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