# How to access the console to get the Web Socket port?

**URL:** <https://discourse.nodered.org/t/how-to-access-the-console-to-get-the-web-socket-port/84949>\
**Category:** General\
**Created:** [26 January 2024 16:42 UTC](https://discourse.nodered.org/t/how-to-access-the-console-to-get-the-web-socket-port/84949 "2024-01-26T16:42:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcaccount](https://avatars.discourse-cdn.com/v4/letter/d/e36b37/32.png) [@dcaccount](https://discourse.nodered.org/u/dcaccount)\
**Post date:** [26 January 2024 16:42 UTC](https://discourse.nodered.org/t/how-to-access-the-console-to-get-the-web-socket-port/84949/1 "2024-01-26T16:42:43Z")

</div>

I need to establish a web socket connection between Node-RED and a web site so I need the proper port.

How can I have access to the Node-RED console to get the information on the ws port?

Please advise, thanks, Daniele

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [26 January 2024 17:40 UTC](https://discourse.nodered.org/t/how-to-access-the-console-to-get-the-web-socket-port/84949/2 "2024-01-26T17:40:27Z")

</div>

The Web Socket port is the one for Node RED + the path you set up in the web socket Listener Node

```auto
ws://<Node-RED-IP-Address>:1880/<Path>

```

But I will leave with this:

* * *

## _ **DO NOT EXPOSE NODE-RED TO THE INTERNET** _ _ **UNLESS YOU KNOW WHAT YOU ARE DOING** _ _ **AND HAVE CORRECTLY SECURED ACCESS** _

Jump to #FAQs to read all about Security

---

<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:** [26 January 2024 20:02 UTC](https://discourse.nodered.org/t/how-to-access-the-console-to-get-the-web-socket-port/84949/3 "2024-01-26T20:02:07Z")

</div>

Ha, Marcus you are getting worse than me on security. 😀

Just to expand slightly though. Don't forget that the port is actually set in the settings.js file when you start Node-RED. It will, of course be different in different circumstances:

- If you changed it in settings
- If you overrode it in startup parameters or a suitable environment variable
- If you are running behind a reverse proxy.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [26 January 2024 20:08 UTC](https://discourse.nodered.org/t/how-to-access-the-console-to-get-the-web-socket-port/84949/4 "2024-01-26T20:08:27Z")

</div>

> [@TotallyInformation](#):
>
> Ha, Marcus you are getting worse than me on security. 😀

![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/d/9d1ae27d4e47fb1f64b09d228fedf000f587b7c5.gif)  
😉

---

<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:** [9 February 2024 20:08 UTC](https://discourse.nodered.org/t/how-to-access-the-console-to-get-the-web-socket-port/84949/5 "2024-02-09T20:08:41Z")

</div>

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