# How to open nodered with DNS name

**URL:** <https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185>\
**Category:** General\
**Created:** [16 July 2020 08:54 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185 "2020-07-16T08:54:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranavthakkar](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Post date:** [16 July 2020 08:54 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185/1 "2020-07-16T08:54:47Z")

</div>

Hello,

I want to open nodered Ui as [www.mydnsname.com](http://www.mydnsname.com), So it's like mydnsname translate 192.168.0.1:1880.

Can I open it in my local RPI server?

Regards,  
Pranav

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [16 July 2020 20:18 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185/2 "2020-07-16T20:18:03Z")

</div>

Do you want to access the UI across the internet or just from the local network?  
Is that domain name a public name on the internet?

---

<div class="post-metadata">

**Author:** ![janvda](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/janvda/32/234_2.png) [@janvda](https://discourse.nodered.org/u/janvda)\
**Post date:** [17 July 2020 10:17 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185/3 "2020-07-17T10:17:10Z")

</div>

You can change the port number 1880 to 80 ([https://nodered.org/docs/user-guide/runtime/configuration](https://nodered.org/docs/user-guide/runtime/configuration))

... but take security into account as anyone in the world can now access your node-red editor in a similar way with that dns name, moreover port 80 doesn't encrypt your data (= http and not https)

---

<div class="post-metadata">

**Author:** ![pranavthakkar](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Post date:** [17 July 2020 17:07 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185/4 "2020-07-17T17:07:55Z")

</div>

From local network. only in my local network(which is connected to internet)

---

<div class="post-metadata">

**Author:** ![pranavthakkar](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Post date:** [17 July 2020 17:09 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185/5 "2020-07-17T17:09:07Z")

</div>

okay but what if i want to run it in locally and with dns name. What are the key steps to get in to this?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 July 2020 20:08 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185/6 "2020-07-17T20:08:03Z")

</div>

Either you need to provide a local DNS server or on each machine that want to use it from configure system to go to the right IP. On Ubuntu for example you can add to the file `/etc/hosts`  
`192.168.0.1 www.mydnsname.com`  
but you will still need to use :1880. The suggestion from @janvda is problematic I think as a process running as a user (rather than root) cannot normally listen on port 80. This link suggests how to do it, but I have not done it myself. [https://superuser.com/questions/710253/allow-non-root-process-to-bind-to-port-80-and-443](https://superuser.com/questions/710253/allow-non-root-process-to-bind-to-port-80-and-443)

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [17 July 2020 21:05 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185/7 "2020-07-17T21:05:09Z")

</div>

I recommend googling for "redirect webwerver to another port" and see if any of the solutions would work for you

---

<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:** [15 September 2020 21:05 UTC](https://discourse.nodered.org/t/how-to-open-nodered-with-dns-name/30185/8 "2020-09-15T21:05:23Z")

</div>

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