# Custom endpoint port for HTTP post

**URL:** <https://discourse.nodered.org/t/custom-endpoint-port-for-http-post/93285>\
**Category:** General\
**Tags:** http-in\
**Created:** [20 November 2024 09:06 UTC](https://discourse.nodered.org/t/custom-endpoint-port-for-http-post/93285 "2024-11-20T09:06:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JesFo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jesfo/32/50735_2.png) [@JesFo](https://discourse.nodered.org/u/JesFo)\
**Post date:** [20 November 2024 09:06 UTC](https://discourse.nodered.org/t/custom-endpoint-port-for-http-post/93285/1 "2024-11-20T09:06:18Z")

</div>

I have a different port than 1880 open for incoming HTTP-POST requests. I read that in order for another port to be read/exposed to WAN, I'd have to start a separate express instance to handle that.  
I found this node: [node-red-contrib-http-custom-port (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-http-custom-port)  
And I tried configuring this to my other TCP port besides 1880, but unlike the default port 1880, I get nothing on my other port. Everything works fine if I send the requesto to 1880, but not my other port using this node. Any help?

---

<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 November 2024 09:19 UTC](https://discourse.nodered.org/t/custom-endpoint-port-for-http-post/93285/2 "2024-11-20T09:19:16Z")

</div>

You may want to consider placing a proxy in front of your Node-RED.  
It can receive requests on one port and forward them to your node-red on port 1880.

As for that node, it is nearly 3y since it was written and Node-RED has since moved to a newer major version of GOT (the http lib used for requests). You could raise an issue on its [issue tracker](https://github.com/Rallymen007/node-red-contrib-http-custom-port/issues) & wait for the author to fix it up? Or you could fork it and improve it?

---

<div class="post-metadata">

**Author:** ![JesFo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jesfo/32/50735_2.png) [@JesFo](https://discourse.nodered.org/u/JesFo)\
**Post date:** [20 November 2024 12:28 UTC](https://discourse.nodered.org/t/custom-endpoint-port-for-http-post/93285/3 "2024-11-20T12:28:50Z")

</div>

Nevermind. The node works, it was just a misconfigured firewall port on my end.

---

<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 December 2024 12:29 UTC](https://discourse.nodered.org/t/custom-endpoint-port-for-http-post/93285/4 "2024-12-04T12:29:29Z")

</div>

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