# How many ports can be used in Node-Red?

**URL:** <https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382>\
**Category:** General\
**Created:** [20 July 2020 08:59 UTC](https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382 "2020-07-20T08:59:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MadanKumar](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@MadanKumar](https://discourse.nodered.org/u/MadanKumar)\
**Post date:** [20 July 2020 08:59 UTC](https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382/1 "2020-07-20T08:59:38Z")

</div>

Hello,  
This is Madan Kumar. i have a query that how many Ports can be used in Node-Red? is there any restrictions? or only Multiple ports can be used?? will be waiting for your reply.

Thanks&Regards,  
M.Madan Kumar.

---

<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 July 2020 10:13 UTC](https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382/2 "2020-07-20T10:13:34Z")

</div>

Hi.

What do you mean by ports?

TCP ports in the TCP nodes?  
UDP ports in the UDP nodes?  
The port node-red uses (typically 1880)?  
The ports other ethernet based protocol nodes use?  
What do you mean exactly?

---

<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 July 2020 10:14 UTC](https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382/3 "2020-07-20T10:14:57Z")

</div>

The question is about Serial ports (they emailed me directly and I asked them to post here).

As I also replied, there are no restrictions in Node-RED that I am aware of over using multiple serial ports, and that it would take a couple minutes to test it to find out.

---

<div class="post-metadata">

**Author:** ![MadanKumar](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@MadanKumar](https://discourse.nodered.org/u/MadanKumar)\
**Post date:** [20 July 2020 10:32 UTC](https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382/4 "2020-07-20T10:32:20Z")

</div>

Thanks for your reply,

i am asking about The port node-red uses (typically 1880)? can we use 4 multiple ports like 1880,1881,1882,1883.

Thanks & Regards,  
M.Madan Kumar.

---

<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 July 2020 10:38 UTC](https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382/5 "2020-07-20T10:38:28Z")

</div>

You can configure what port Node-RED listens on in your settings file.

The runtime starts a single HTTP server on that port and it is used for the editor and HTTP In nodes.

I seem to remember someone created a set of http nodes that spin up their own HTTP server on a different port, but I can't find it on [flows.nodered.org](http://flows.nodered.org) - so maybe I'm misremembering it.

The other option is to run multiple node-red instances, each on a different port.

---

<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:** [20 July 2020 12:08 UTC](https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382/6 "2020-07-20T12:08:31Z")

</div>

I've previously mentioned adding it as an option to uibuilder but it hasn't made it to the top of the backlog as yet. The ability to quickly run up a separate ExpressJS server which is fully independent from the Node-RED app servers might be useful to a few people.

---

<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:** [18 September 2020 12:08 UTC](https://discourse.nodered.org/t/how-many-ports-can-be-used-in-node-red/30382/7 "2020-09-18T12:08:52Z")

</div>

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