# I need to exchange ip from localhost (127.0.0.1) over network ip

**URL:** <https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043>\
**Category:** General\
**Created:** [4 August 2018 06:47 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043 "2018-08-04T06:47:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sergio](https://discourse.nodered.org/u/Sergio)\
**Post date:** [4 August 2018 06:47 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/1 "2018-08-04T06:47:56Z")

</div>

I bought a book about arduino projects on the internet (Iot); and in a chapter asks to exchange the ip 127.0.0.1 by another, the example of the book ta by a 10.0.0.6.  
Where can I change this ip?

---

<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:** [4 August 2018 07:06 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/2 "2018-08-04T07:06:18Z")

</div>

Your question is too vague. Tell us more about what the example in the book says about changing the ip. There are many, many places you might need to setup an ip address so without more detail we don't know what it is trying to achieve.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [4 August 2018 07:11 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/3 "2018-08-04T07:11:13Z")

</div>

Would this be better asked in a forum that covers Arduino?

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [4 August 2018 07:15 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/4 "2018-08-04T07:15:30Z")

</div>

Sergio 127.0.0.1 will be always the locahost but will work in the same way if you use the acual ip of the machine.

Are you sure the example is not explaining you or trying to just test this?

Regards

---

<div class="post-metadata">

**Author:** ![Sergio](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@Sergio](https://discourse.nodered.org/u/Sergio)\
**Post date:** [4 August 2018 07:23 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/5 "2018-08-04T07:23:49Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5cdd2d4fae2c11b07d67a90c4a12e114fbd05104.jpeg)

the book says only this, that it is necessary to change the local ip 127.0.0.1 by the network ip of the machine! Do you have any configuration of the node-red that can change?

---

<div class="post-metadata">

**Author:** ![davidcgu](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Post date:** [4 August 2018 07:28 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/6 "2018-08-04T07:28:42Z")

</div>

Sergio lo que te indica en ese documento es simplemente que en el módulo arduino debes usar la IP de red del servidor para poder conectar a node-red si quieres abrir desde un navegador en otro ordenador o dispositivo.

Es decir otro ordenador debes abrir ip:1880 para ver el editor de node-red o ip:1880/ui para el dashboard, por si te queda mas claro.

Un saludo

---

<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:** [4 August 2018 07:33 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/7 "2018-08-04T07:33:29Z")

</div>

That is saying that to view node-red in a browser you have to enter the ip address of the pi in the browser address bar. If you are running the browser on the pi then you can use [http://localhost:1880](http://localhost:1880), if you are running the browser on a PC then you need to know the ip address of the pi. In a terminal on the pi run `ifconfig` and you will find the ip address under the interface you are using (probably eth0 or wlan0). It will say something like

```auto
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 192.168.1.231 netmask 255.255.255.0 broadcast 192.168.49.255

```

where in my case the address is 192.168.1.231

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [4 August 2018 10:25 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/8 "2018-08-04T10:25:18Z")

</div>

Note: that example is using NR v0.10.6 which is very very old and node.js v0.10.36 which is very very new and not supported. You should be using NR v0.18.7 and node.js v0.8.x

Nota: ese ejemplo usa NR v0.10.6 que es muy muy antiguo y node.js v0.10.36 que es muy nuevo y no es compatible. Debería usar NR v0.18.7 y node.js v0.8.x

---

<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:** [4 August 2018 10:38 UTC](https://discourse.nodered.org/t/i-need-to-exchange-ip-from-localhost-127-0-0-1-over-network-ip/2043/9 "2018-08-04T10:38:53Z")

</div>

Just realised that I made the assumption that you were using a pi, if not then it is the ip address of whatever is running node red that you want.
