🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

node-red-contrib-ngrok

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-ngrok

Node-RED node to wrap and control ngrok

latest
Source
npmnpm
Version
3.2.0
Version published
Maintainers
1
Created
Source

node-red-contrib-ngrok

This is a client (ngrok-javascript) to expose and manage the popular tunnelling service ngrok from Node-RED.

You can start and stop a tunnel using the button on the node or by injecting values, the node will then output the ngrok host address as the msg.payload

The tunnel will expose the port that your Node-RED GUI is running on (eg 1880), you can override this port by setting the Port value in the node.

The 3.0.0 release uses the new ngrok javascript client, as such region support has been removed an it now uses ngrok's new global load balancing service. The new client no longer offers the local debug console on port 4040, however ngrok have a new console as part of the dashboard in beta as of Feb 2024.

Account registration is now required but all users get one free reserved tunnel address even on the free plan.

Other optional fields around the host and port that the connection is forwarded to along with adding auth or setting up a TCP tunnel are configurable within the node, consult the built in help or the ngrok documentation for an explanation.

For dynamic control, there is a demo flow included. Use CTRL+I then choose examples → node-red-contrib-ngrok → dynamic-control-demo

!!!DANGER!!!

By running this node you will be exposing your Node-RED install to the public internet, therefore you are strongly advised to set an admin password on the editor. read (https://nodered.org/docs/security)

Feedback, Issues and PRs welcome on github.

Debugging

If your node-red logging level is set to `debug` then the full set of options being passed to the ngrok client (ngrok.forward) will be logged to the console, *including the authtoken*,
This can be useful when trying to diagnose issues and may be asked for by ngrok support. Please include this info (redacting your authtoken) in any issues asking for support.

The simplest way to enable this logging if running node-red from the command line is to launch with the command `node-red -D logging.console.level=debug`

Platform Support

Pre-built binaries are provided on NPM for the following platforms:

OSi686x64aarch64arm
Windows✓✓*
MacOS✓✓
Linux✓✓✓
Linux musl✓✓
FreeBSDâś“
Android✓✓

Note ngrok-javascript, and ngrok-rust which it depends on, are open source, so it may be possible to build them for other platforms.

  • Windows-aarch64 will be supported after the next release of Ring.

Keywords

node-red

FAQs

Package last updated on 08 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts