Custom endpoint port for HTTP post

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
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?

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 & wait for the author to fix it up? Or you could fork it and improve it?

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

1 Like

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