# More project simultaneously opened with different port number

**URL:** <https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271>\
**Category:** General\
**Created:** [26 January 2022 15:55 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271 "2022-01-26T15:55:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [26 January 2022 15:55 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271/1 "2022-01-26T15:55:24Z")

</div>

Hi all,  
I would like use a server with nodered to create more than one projects and user could switch from one project to other opening different web page: 192.168.1.10:1880 or 192.168.1.10:1881 etc.  
Is possible to create many folders and in each a nodered project associated with a different port number?

many thank in advance

---

<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:** [26 January 2022 15:57 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271/2 "2022-01-26T15:57:59Z")

</div>

> [@denissanga](#):
>
> Is possible to create many folders and in each a nodered project associated with a different port number?

Yes. See this: [Node red multiple instances - #7 by Steve-Mcl](https://discourse.nodered.org/t/node-red-multiple-instances/9787/7)

---

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [27 January 2022 07:26 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271/3 "2022-01-27T07:26:06Z")

</div>

many thanks Steve

---

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [31 January 2022 18:30 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271/4 "2022-01-31T18:30:05Z")

</div>

Just one more question  
If I would like run node red in multi folder on boot I read about pm2 and - - user Dir arguments but seems not works

Do you know how to run multi node red projects with npm system in multi folders and multi port services  
Many thanks

---

<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:** [31 January 2022 18:34 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271/5 "2022-01-31T18:34:10Z")

</div>

I usually recommend NSSM

See here: [Running Multiple Instances of Node-red using NSSM - #2 by Steve-Mcl](https://discourse.nodered.org/t/running-multiple-instances-of-node-red-using-nssm/57127/2)

---

<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:** [31 January 2022 21:03 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271/6 "2022-01-31T21:03:44Z")

</div>

Kind of depends on what platform you are using. PM2 is ok but fairly heavy on resources. NSSM works to turn scripts into Windows services. But if working with Linux, you can simply use a systemd script. My alternate installer has an example of what you can do. Dave's Pi/Debian script also sets up a systemd script I believe. so you can look at those to see what you need to do.

I use PM2 for my dev setup since I know I'll need to keep restarting often and PM2 has a watch function that detects file changes in key files. I use systemd for my "live" home automation server which runs on a Debian based old laptop set up as a headless server.

---

<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:** [1 April 2022 21:03 UTC](https://discourse.nodered.org/t/more-project-simultaneously-opened-with-different-port-number/57271/7 "2022-04-01T21:03:55Z")

</div>

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