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

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

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

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

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

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.
1 Like


:wink:

2 Likes

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