# Fail open node red in browser using ip address

**URL:** <https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219>\
**Category:** General\
**Created:** [4 April 2020 14:34 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219 "2020-04-04T14:34:46Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [4 April 2020 14:34 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/1 "2020-04-04T14:34:46Z")

</div>

my node red is fail to open using browser... it show cookies(0 in use)...i think this is the problem... any solution ? why it show 0 cookies in use? i using google chrome ...  
but it avaliable open when i using browser in reapberry pi itself... (and it show 1 cookies in use)  
what is the problem? how can i sovle this problem?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 April 2020 14:36 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/2 "2020-04-04T14:36:09Z")

</div>

You realise that the address is different when accessed from another device, yes?

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [4 April 2020 14:38 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/3 "2020-04-04T14:38:10Z")

</div>

no...the address i using is same

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 April 2020 14:40 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/4 "2020-04-04T14:40:15Z")

</div>

Then that is your issue.

When you access from the _same_ device, you are probably using the URL `http://127.0.0.1:1880` or `http://localhost:1880`. That will not work from another device because those are the **local** addresses. From another device, you have to use the external IP address of the device.

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [4 April 2020 14:43 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/5 "2020-04-04T14:43:26Z")

</div>

i am using the address that given when i start the node red in raspberry pi (is that external ip address?)....  
but before this i also doing like this... it can access

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 April 2020 14:49 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/6 "2020-04-04T14:49:24Z")

</div>

You aren't listening I'm afraid.

To access from another device, you have to use the correct IP address.

The log tells you something like this:

```auto
[info] Server now running at https://127.0.0.1:1880/red/

```

That is the LOCAL address. Try this from the command line and you will find the correct address:

```auto
ip address

```

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [4 April 2020 14:51 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/7 "2020-04-04T14:51:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b70a7ee3a976f862bfe2642985c78649f382f19.png)  
ip address i take from here, right?

i not using local address....

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [4 April 2020 15:18 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/8 "2020-04-04T15:18:15Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/2/c2e2631ebe9a3963d62683a466d9b79f9d163fc2.png)  
can open in browser in pi...

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/1/618905df1c941aeaa3a4f9bfb94c6158083acb1d.png)  
cannot open using google chorme in my laptop...

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b70a7ee3a976f862bfe2642985c78649f382f19.png)  
access ip address from here

USING SAME IP ADDRESS FOR BOTH

---

<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:** [4 April 2020 15:30 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/9 "2020-04-04T15:30:46Z")

</div>

If you are using localhost or 127.0.0.1 then you are using the local address. Have you tried what Julian suggested to get your external IP address and use that?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [4 April 2020 15:39 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/10 "2020-04-04T15:39:02Z")

</div>

> USING SAME IP ADDRESS FOR BOTH

Are you trying to reach it over the internet ?

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [4 April 2020 15:42 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/11 "2020-04-04T15:42:47Z")

</div>

then how to get external IP address?

---

<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:** [4 April 2020 15:51 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/12 "2020-04-04T15:51:23Z")

</div>

30 seconds with a search engine will help you...

[https://www.raspberrypi.org/documentation/remote-access/ip-address.md](https://www.raspberrypi.org/documentation/remote-access/ip-address.md)

```auto
hostname -I

```

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [4 April 2020 18:25 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/13 "2020-04-04T18:25:46Z")

</div>

yes, have try this way and i have get the external address, the address is same i using before (that i show in previous picture when open the node red)...it still cannot open.....

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

is that maybe due to delete the settings.js file? cause i have uncarefully delete it ....  
got any way to recover it?

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [4 April 2020 18:50 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/14 "2020-04-04T18:50:13Z")

</div>

You’ve hidden the address is every screenshot so we can’t say for sure what is suggested. One of my pis shows the local network address there rather than localhost, for example. So it’s not always localhost or 127.0.0.1. Does the address you see match what shows when you do `ifconfig -a`, for either `eth0` or `wlan0`? And have you confirmed that the other computer or device that you use is connected to the same local network?

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [5 April 2020 04:57 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/15 "2020-04-05T04:57:18Z")

</div>

yes, it match of address i using for try `ifconfig -a`

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/17608b80ede9652bfd21c1c71256ffdf5fc02fea.png)  
it that the problem of cookies? it show "0 in use"... because i remember it should "1 in use" if working

---

<div class="post-metadata">

**Author:** ![lingzhongli](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lingzhongli/32/20078_2.png) [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Post date:** [5 April 2020 05:33 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/16 "2020-04-05T05:33:38Z")

</div>

thank you everyone, i have solve the problem  
i just follow what in this video [https://www.youtube.com/watch?v=j9sp6nw5Qzk](https://www.youtube.com/watch?v=j9sp6nw5Qzk)  
hope can help u guys

---

<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:** [19 April 2020 05:33 UTC](https://discourse.nodered.org/t/fail-open-node-red-in-browser-using-ip-address/24219/17 "2020-04-19T05:33:38Z")

</div>

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