# Multiple Node.js servers

**URL:** <https://discourse.nodered.org/t/multiple-node-js-servers/78386>\
**Category:** General\
**Created:** [12 May 2023 14:33 UTC](https://discourse.nodered.org/t/multiple-node-js-servers/78386 "2023-05-12T14:33:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [12 May 2023 14:33 UTC](https://discourse.nodered.org/t/multiple-node-js-servers/78386/1 "2023-05-12T14:33:50Z")

</div>

Is is possible to run multiple Node.js servers on the same PC; each running a separate Node-Red flow?

---

<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:** [12 May 2023 14:55 UTC](https://discourse.nodered.org/t/multiple-node-js-servers/78386/2 "2023-05-12T14:55:24Z")

</div>

Yes. But each must use a different PORT. 1880 is the default but you can only use that once. So you can use another port for each additional instance.

If you don't want/like the ports, you can run a reverse proxy to push a specific port to a sub-path on, lets say, the default port 443.

---

<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:** [12 May 2023 14:55 UTC](https://discourse.nodered.org/t/multiple-node-js-servers/78386/3 "2023-05-12T14:55:37Z")

</div>

It is easy to run multiple node-red instances.  
Run  
`node-red -u /path/to/directory/containing/flows/file -p portnumber`  
If you specify the port in settings.js then you don't need the `-p` option.

---

<div class="post-metadata">

**Author:** ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Post date:** [12 May 2023 15:21 UTC](https://discourse.nodered.org/t/multiple-node-js-servers/78386/4 "2023-05-12T15:21:58Z")

</div>

Thanks Totallyinformation & Colin for the good information,

X.

---

<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:** [11 July 2023 15:22 UTC](https://discourse.nodered.org/t/multiple-node-js-servers/78386/5 "2023-07-11T15:22:15Z")

</div>

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