# Install node-red to windows server in different ports

**URL:** https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627
**Category:** General
**Created:** [23 February 2023 11:21 UTC](https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627 "2023-02-23T11:21:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mbe23](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@mbe23](https://discourse.nodered.org/u/mbe23)
#### Post date: [23 February 2023 11:21 UTC](https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627/1 "2023-02-23T11:21:25Z")

</div>

Hello everyone, I need to install node-RED to a windows server in different ports and I can't find a way to do it. Already tried many things but none of them is working.  
I did this before in linux servers and it's easy but I'm having issues with windows.  
If anyone can help it would be much appreciated.  
Thanks 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: [23 February 2023 12:11 UTC](https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627/2 "2023-02-23T12:11:11Z")

</div>

> [@mbe23](#):
>
> install node-RED to a windows server in different ports

Are you meaning multiple instances of node-red on ONE Windows Server - each with a different port number?

Or 1 Node-RED on 1 Windows Server with a port different to the default 1880 port?

* * *

Either way, for Windows Server, I would recommend

- NPM Global is moved to somewhere common (e.g. `c:\programdata`)
  - See here: [Running on Windows : Node-RED](https://nodered.org/docs/getting-started/windows#sharing-node-red-between-users)

- separate directories for each node-red instance
  - see this post: [Node red multiple instances - #7 by Steve-Mcl](https://discourse.nodered.org/t/node-red-multiple-instances/9787/7)

- use of NSSM with a service account for running node-red
  - See this post: [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: ![mbe23](https://avatars.discourse-cdn.com/v4/letter/m/2bfe46/32.png) [@mbe23](https://discourse.nodered.org/u/mbe23)
#### Post date: [23 February 2023 12:33 UTC](https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627/3 "2023-02-23T12:33:52Z")

</div>

Yes, I'm meaning the first one.  
It'd be perfect if I could have in one windows server different flows in port 1880, 1881, 1882, and so on.

Thank you for the links you provided, I'm going to check them.

---

<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: [23 February 2023 16:30 UTC](https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627/4 "2023-02-23T16:30:56Z")

</div>

In addition to Steve's suggestions. If you are going to use IIS as a reverse proxy, the normal approach is to use _iisnode_ which should manage the running of Node-RED for you. This is what Microsoft use on Azure for example.

That would also give you options to use standard ports and redirect URI's to individual Node-RED instances.

---

<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: [24 April 2023 16:31 UTC](https://discourse.nodered.org/t/install-node-red-to-windows-server-in-different-ports/75627/5 "2023-04-24T16:31:21Z")

</div>

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