# Issues Installing Nodes on a Raspberry Pi 4 with 2 IP Addresses

**URL:** https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485
**Category:** General
**Created:** [30 November 2022 03:08 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485 "2022-11-30T03:08:40Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![VRomanov](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@VRomanov](https://discourse.nodered.org/u/VRomanov)
#### Post date: [30 November 2022 03:08 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/1 "2022-11-30T03:08:40Z")

</div>

Hi everyone,

I've been stuck on this for a while now... A few threads exist, but none of the solutions seem to work for me.

I've installed Node-Red on a Raspberry Pi 4 using current best practices. Everything installed as expected.

My Raspberry Pi is using two IP addresses: Static (192.168.1.42) over Eth0 (RJ45 cable) and DHCP (currently 10.0.0.148) over Wlan0.

The issue I'm having is adding Nodes into Node-Red. The error I get is as follows:

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

I suspect that it's not able to get to Internet. However, I can ping [google.com](http://google.com) from the Raspberry Pi and I can ping both IP addresses (static / DHCP) from my PC.

Any ideas / suggestions on how to resolve this?

---

<div class="post-metadata">

### Author: ![MecatronicaMADE](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MecatronicaMADE](https://discourse.nodered.org/u/MecatronicaMADE)
#### Post date: [30 November 2022 04:40 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/2 "2022-11-30T04:40:45Z")

</div>

Hi @VRomanov and welcome to node-RED community, I am not sure, but when you installed node-RED on Rpi, did you use Eth0 or Wlan0? or both at the same time? what happend if you disconnect Eth0, and try to install your nodes only with Wlan0?

---

<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: [30 November 2022 04:59 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/3 "2022-11-30T04:59:02Z")

</div>

Although you can ping both addresses from your PC (which is surprising), it sounds like you only have access to the internet over wlan0.

[Jeff Geerling](https://www.jeffgeerling.com/blog/2022/network-interface-routing-priority-on-raspberry-pi) discusses a similar issue (USB rather than wlan) and how to change priority so that internet traffic is routed away from eth0.

---

<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: [30 November 2022 07:32 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/4 "2022-11-30T07:32:40Z")

</div>

> [@VRomanov](#):
>
> I've installed Node-Red on a Raspberry Pi 4 using current best practices

Which best practice is that? Some might consider that using Docker is best practice.

What happens if you run, in a terminal  
`wget https://registry.npmjs....`  
Using the URL that it says it's not reachable.

---

<div class="post-metadata">

### Author: ![VRomanov](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@VRomanov](https://discourse.nodered.org/u/VRomanov)
#### Post date: [30 November 2022 12:42 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/5 "2022-11-30T12:42:48Z")

</div>

They changed the way the Raspberry Pi OS is installed from what the process was previously. The new "recommended" way is through a launcher - current best practice.

The Node-Red install was through a long command that was also the recommended way for installing it onto the Pi.

I've played around with the networks and believe that the root cause is the way both network addresses are setup. I can download the libraries if I remove the Eth0 connection. It's not ideal, but works for now I guess... I'll read the RPi documentation a little more and see how I can configure it better.

---

<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: [30 November 2022 13:47 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/6 "2022-11-30T13:47:48Z")

</div>

It is nothing to do with node-red.  
Please show us what the wget command returns, as requested. Also show us what  
`ip addr`  
says.

---

<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: [30 November 2022 13:50 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/7 "2022-11-30T13:50:13Z")

</div>

> [@VRomanov](#):
>
> They changed the way the Raspberry Pi OS is installed from what the process was previously. The new "recommended" way is through a launcher - current best practice.
> 
> The Node-Red install was through a long command that was also the recommended way for installing it onto the Pi.

So which one did you use? They will give different results The way recommended by the node red community is using the method in [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi)

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [30 November 2022 17:57 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/8 "2022-11-30T17:57:42Z")

</div>

This is a networking problem not Node-RED... so what does the `route` command output when both connections are active ?  
That should show the default way it will route packets to which addresses.  
We can then fix it from there.

---

<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: [30 November 2022 18:05 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/9 "2022-11-30T18:05:08Z")

</div>

> [@VRomanov](#):
>
> I can download the libraries if I remove the Eth0 connection.

Did you try changing the metrics in /etc/dhcpcd.conf as documented in the link I posted? What was the result?

Add to /etc/dhcpcd.conf

```auto
interface eth0
metric 400

```

---

<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: [30 November 2022 20:33 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/10 "2022-11-30T20:33:31Z")

</div>

Are you sure that is a good idea before we understand what is happening? Assuming both links have internet access then it should not matter which is used.

---

<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: [30 November 2022 21:04 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/11 "2022-11-30T21:04:45Z")

</div>

If it works when ethernet is disconnected I conclude that ethernet does not have internet access. RPiOS prioritises ethernet.  
Might be wrong.  
Of course I do not know why @VRomanov has different IP networks on the two interfaces. It's possible that changing the metric will interfere with something other than updating.

---

<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: [30 November 2022 21:09 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/12 "2022-11-30T21:09:26Z")

</div>

@VRomanov do you expect to have internet access via the routers on both the eth0 and wifi connections? Presumably they are connected to different routers.

---

<div class="post-metadata">

### Author: ![VRomanov](https://avatars.discourse-cdn.com/v4/letter/v/b38774/32.png) [@VRomanov](https://discourse.nodered.org/u/VRomanov)
#### Post date: [30 November 2022 22:27 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/13 "2022-11-30T22:27:17Z")

</div>

The internet connection is only on one side. The idea is that the Raspberry Pi lies between a private and public networks and is used as a funnel for data generated by production equipment that isn't connected to the internet and translates those packets into MQTT messages on the wireless side.

I'll get command responses tomorrow morning on this. thank you all for helping! Will report back on this thread tomorrow.

---

<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: [1 December 2022 07:56 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/14 "2022-12-01T07:56:38Z")

</div>

> [@VRomanov](#):
>
> The internet connection is only on one side.

In that case you need the the one with internet connection to be the higher priority. Assuming that the WiFi is the one with internet then @jbudd's suggestion is probably the one to try.

---

<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: [30 January 2023 07:56 UTC](https://discourse.nodered.org/t/issues-installing-nodes-on-a-raspberry-pi-4-with-2-ip-addresses/71485/15 "2023-01-30T07:56:41Z")

</div>

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