# Error: listen EADDRNOTAVAIL: address not available 1.1.1.1:10502

**URL:** https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627
**Category:** General
**Created:** [5 February 2019 20:18 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627 "2019-02-05T20:18:36Z")
**Posts on this page:** 11
**Page:** 2

<div class="post-metadata">

### Author: ![Joseph](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Joseph](https://discourse.nodered.org/u/Joseph)
#### Post date: [12 July 2019 07:22 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/21 "2019-07-12T07:22:44Z")

</div>

I'm also facing this issue:  
i am using angular 7  
listen EADDRNOTAVAIL: address not available 192.168.7.63:4200 Error: listen EADDRNOTAVAIL: address not available 192.168.7.63:4200 at Server.setupListenHandle [as \_listen2] (net.js:1253:19) at listenInCluster (net.js:1318:12) at GetAddrInfoReqWrap.doListen [as callback] (net.js:1451:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:61:10)

please help me to solve this... Thanks

---

<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: [12 July 2019 07:39 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/22 "2019-07-12T07:39:23Z")

</div>

Where in node-red are you seeing this? What nodes are you using?

---

<div class="post-metadata">

### Author: ![jurgen](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jurgen](https://discourse.nodered.org/u/jurgen)
#### Post date: [19 August 2022 18:50 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/23 "2022-08-19T18:50:32Z")

</div>

I read an tried all above suggestions but unfortunately my node-red server refuse to launch.  
The server was running normally and during the warm days the rasphbery pi 4 got overheated.  
I bought an proper cooler and raspberry is running normal again but nod-red didn`t want to power up.

At the end I tried to install the latest version using the script from node-red:

```auto
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

```

after update the node-red server still didn`t to power up, see log file below:

```auto
19 Aug 20:17:00 - [info] Node-RED version: v3.0.2
19 Aug 20:17:00 - [info] Node.js version: v18.7.0
19 Aug 20:17:00 - [info] Linux 5.10.103-v7l+ arm LE
19 Aug 20:17:01 - [info] Loading palette nodes
19 Aug 20:17:3 - [s7comm-Error] - Installation of Module net-keepalive failed because we might be on the wrong OS. OS=linux
19 Aug 20:17:3 - [s7comm-Info] - Debug configuration for logLevelNodeS7:{"debug":0,"silent":true}
19 Aug 20:17:3 - [s7comm-Info] - Debug configuration for logLevelNodeRED:{"debug":2,"silent":true}
19 Aug 20:17:03 - [info] Dashboard version 3.1.7 started at /ui
19 Aug 20:17:04 - [warn] Missing node modules:
19 Aug 20:17:04 - [warn] - node-red-node-rbe (0.5.0): rbe
19 Aug 20:17:04 - [warn] - node-red-node-tail (0.3.1): tail
19 Aug 20:17:04 - [info] Removing modules from config
19 Aug 20:17:04 - [info] Settings file : /home/pi/.node-red/settings.js
19 Aug 20:17:04 - [info] Context store : 'default' [module=memory]
19 Aug 20:17:04 - [info] User directory : /home/pi/.node-red
19 Aug 20:17:04 - [warn] Projects disabled : editorTheme.projects.enabled=false
19 Aug 20:17:04 - [warn] Flows file name not set. Generating name using hostname.
19 Aug 20:17:04 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
19 Aug 20:17:04 - [error] Uncaught Exception:
19 Aug 20:17:04 - [error] Error: listen EADDRNOTAVAIL: address not available 192.168.1.50:1880
    at Server.setupListenHandle [as _listen2] (node:net:1415:21)
    at listenInCluster (node:net:1480:12)
    at doListen (node:net:1629:7)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21)

```

anybody any idea how to proceed or any suggestions?  
how to fix the S7comm error? is there any way to clear the entire node-red, to remove the flows and to installed modules?

---

<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: [20 August 2022 07:18 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/24 "2022-08-20T07:18:20Z")

</div>

> [@jurgen](#):
>
> ```auto
> 19 Aug 20:17:04 - [error] Error: listen EADDRNOTAVAIL: address not available 192.168.1.50:1880
> 
> ```

It looks like you have configured something in your flows to communicate with IP 192.168.1.50 on port 1880. Since node-red is typically configured to run on port 1880, this is your problem.

start node-red using in safe mode

```auto
node-red --safe

```

search your flows for `192.168.1.50` or `1880`, change it to something else, deploy.

alternatively, start node-red on a different port number

```auto
node-red -p 1881

```

---

<div class="post-metadata">

### Author: ![jurgen](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jurgen](https://discourse.nodered.org/u/jurgen)
#### Post date: [20 August 2022 08:06 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/25 "2022-08-20T08:06:36Z")

</div>

thx for reply, so far as I recall there is nothing that should communicate with ip 192.168.1.50 inside my flow.  
I changed the adres because before I had ending 109 and this ip had a conflict with a mobile on my network. So I searched for a free IP on my internal network and modified the node-red server ip inside settings.js to 192.168.1.50. At the moment I have no chance to edit any flow.

The log file shown above was already with node-red --safe mode

Is there any easy way to clean up node-red with the installed modules? I guess there can be a conflict that some modules are not compatible with the new update of node-red.

In the worst case I need to delete everything and reinstall everything again...

---

<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: [20 August 2022 08:11 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/26 "2022-08-20T08:11:46Z")

</div>

> [@jurgen](#):
>
> In the worst case I need to delete everything and reinstall everything again

no, not necessary (I will show you how to make node-red clean without total reinstall)

  

> [@jurgen](#):
>
> modified the node-red server ip inside settings.js to 192.168.1.50

show me what you changed in settings.js

  

did you try another port? ...

> [@Steve-Mcl](#):
>
> alternatively, start node-red on a different port number
> 
> ```auto
> node-red -p 1881
> 
> ```

Also, can you share `/home/pi/.node-red/flows_raspberrypi.json`

---

<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: [20 August 2022 08:15 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/27 "2022-08-20T08:15:56Z")

</div>

> [@jurgen](#):
>
> is there any way to clear the entire node-red, to remove the flows and to installed modules?

If you want to start again with empty flow and no contrib nodes installed then delete (or rename) your .node-red directory and restart node red. It will create a new directory and an empty flows file.

As @Steve-Mcl says, there is no need to re-install.

---

<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: [20 August 2022 08:23 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/28 "2022-08-20T08:23:46Z")

</div>

> [@jurgen](#):
>
> modified the node-red server ip inside settings.js to 192.168.1.50

This is not how you change the IP address of your Raspberry Pi.

You need to lookup how to change a Pis ip address (I'm not sure what the current recommended way of doing that is)

The value in settings.js sets which interface of the pi Node-RED will listen on. Undo the change you made to that setting - once you have properly configured the Pi to use the IP address you want, Node-RED will then work with that ip address

---

<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: [20 August 2022 08:59 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/29 "2022-08-20T08:59:16Z")

</div>

> I changed the adres because before I had ending 109 and this ip had a conflict with a mobile on my network. So I searched for a free IP on my internal network and modified the node-red server ip inside settings.js to 192.168.1.50.

Assuming there are no other services on the Pi using port 1880, it should be possible to access Node-red by it's hostname without reference to it's ip address, for example [http://raspberrypi.local:1880](http://raspberrypi.local:1880) (to do this from a Windows pc it has to have iTunes or Bonjour Print Services installed)

However it looks like you have tried to set a static IP address.  
By far the best way to do that is in your router setup, reserve your chosen ip for the Pi's Mac address. Then remove any reference to the ip in settings.js and anywhere else in the Pi and reboot.  
Now the Pi will always get the same IP and you can access it at (eg) 192.168.1.50:1880

---

<div class="post-metadata">

### Author: ![jurgen](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jurgen](https://discourse.nodered.org/u/jurgen)
#### Post date: [21 August 2022 11:37 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/30 "2022-08-21T11:37:19Z")

</div>

Hello,

This was the issue, I need to modify the pis ip to a static ip and not to change the ip in the settings.js

Server came up again, after importing my backup flows, everything works again.

thank to everybody for your assistance !

---

<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: [4 September 2022 11:38 UTC](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627/31 "2022-09-04T11:38:14Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/error-listen-eaddrnotavail-address-not-available-1-1-1-1-10502/7627.md?page=1)
