• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Having a Problem Using Ngrok with MQTT-Connect ESP32 to Node-Red

Q&A Forum › Having a Problem Using Ngrok with MQTT-Connect ESP32 to Node-Red
0 Vote Up Vote Down
Gayland Monken asked 6 years ago

Rui,

I’m in the Unit “MQTT-Connect ESP32 to Node-Red” (MicroPython Programming) and trying to use ngrok to get out onto the internet but I keep getting an error each time I try to use my ngrok authtoken.

I get the token okay but when I try to use it I keep getting the error “Active ngrok client sessions in region ‘us’ ” with some code and an IP address of 108.200.173.100.

This is not my IP address and when I try resetting it, it gives me the same error. I’m using a Raspberry Pi 3 B  as my MQTT Broker.

How can I see my temperatures and DO on the internet from anywhere using the above?

7 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

But are you trying to use ngrok in your Raspberry Pi to connect Node-RED to a secure tunnel or are you trying to connect ngrok to an ESP web server?
I’m not sure which instructions are you following to make that work… Can you tell me the course that you are following?

0 Vote Up Vote Down
Gayland Monken answered 6 years ago

Rui,
I’m trying to use the “MicroPython Programming with ESP32 and ESP8266,v. 1.2, page 253, “MQTT-Connect ESP32 to Node-Red” course. And I’m trying to see the Node-Red temperature and switch button as indicated in the chapter picture from anywhere.  I can see it locally on my WiFi but can not get it through to the internet where I can see it from anywhere. So I guess I’m trying to use ngrok to tunnel out with subscribed/published information from the RPi.
Thank you for getting back to me.

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Ok, thanks for providing more details! But are you installing the ngrok on your Raspberry Pi and trying to make Node-RED Dashboard available from anywhere?

0 Vote Up Vote Down
Gayland Monken answered 6 years ago

Yes, I’ve installed ngrok on my RPi and am trying to get it to show up everywhere.  Is this the right place to install ngrok?  Can Node-red be used like that?

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

If you’re using the free version of Ngrok, you can only have 1 secure tunnel active per account. So, when you run ngrok on a Raspberry Pi, you can either make your ESP or the Node-RED Dashboard available from anywhere.

Yes, you can definitely install ngrok in the Raspberry Pi and make Node-RED accessible from anywhere.

You can read this thread to make ngrok run automatically when the RPi boots: https://rntlab.com/question/module-9-ngrok-install-and-work/

0 Vote Up Vote Down
Gayland Monken answered 6 years ago

Rui,

I’m sorry but what is the “yourusername;your password” referenced in the reference above in:

screen -d -m ./ngrok http -auth="yourusername:yourpassword" 1880 ?

 

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

It’s something that you should replace with your desired unique username and password (they must be separated by a colon). For example in that case the username that would need to enter would be yourusername and the password would be yourpassword.
I hope that helps. Regards,
Rui

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.