# Routing external HTTP message to Node Red

**URL:** <https://discourse.nodered.org/t/routing-external-http-message-to-node-red/20800>\
**Category:** General\
**Created:** [24 January 2020 08:17 UTC](https://discourse.nodered.org/t/routing-external-http-message-to-node-red/20800 "2020-01-24T08:17:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shakey7](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shakey7](https://discourse.nodered.org/u/Shakey7)\
**Post date:** [24 January 2020 08:17 UTC](https://discourse.nodered.org/t/routing-external-http-message-to-node-red/20800/1 "2020-01-24T08:17:35Z")

</div>

Hi All

Glad to jump in this forum for my first topic  
I installed Nod-red on external virtual machine on Ubuntu 18 at @IP node-red-machine  
I want to route http message to my node-red machine to be handled by a HTTP IN Node (POST).  
what must be the HTTP routing in order to be handle by Node-Red  
I suggest the following routing URL : HTTP://\<@IP node-red-machine\>/dir1  
and  
HTP IN Node : POST at URL /dir1

But it does not work

IS there a specific port to open on the node-red machine ?

Thanx 4 your help

Bernie

---

<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:** [24 January 2020 08:30 UTC](https://discourse.nodered.org/t/routing-external-http-message-to-node-red/20800/2 "2020-01-24T08:30:40Z")

</div>

Hi @Shakey7

by default, Node-RED uses port 1880 so you'd need to include that in the url and ensure that port is properly exposed ... `http://ip-of-machine:1880/dir1`

Alternatively, you could configure NR to listen on port 80 via the settings file.

---

<div class="post-metadata">

**Author:** ![Shakey7](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shakey7](https://discourse.nodered.org/u/Shakey7)\
**Post date:** [24 January 2020 10:43 UTC](https://discourse.nodered.org/t/routing-external-http-message-to-node-red/20800/3 "2020-01-24T10:43:54Z")

</div>

Hi knolleary

Thank you 🙏 very much for your feedback, it works fine now!  
maybe you could tell ole how toi secure the HTTP forward via https on my node-red implementation ?

Anyhow thank's a lot

Bernie

---

<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:** [24 January 2020 11:57 UTC](https://discourse.nodered.org/t/routing-external-http-message-to-node-red/20800/4 "2020-01-24T11:57:04Z")

</div>

The Node-RED docs have details on security configuration.

---

<div class="post-metadata">

**Author:** ![Shakey7](https://avatars.discourse-cdn.com/v4/letter/s/ba9def/32.png) [@Shakey7](https://discourse.nodered.org/u/Shakey7)\
**Post date:** [24 January 2020 13:39 UTC](https://discourse.nodered.org/t/routing-external-http-message-to-node-red/20800/5 "2020-01-24T13:39:02Z")

</div>

Yes I know Julian, but thanks  
I have to do my homework 😉
