• 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

Unit1 – ESP32 Wi-Fi Multisensor; Unit 7: Accessing the ESP32 Web Server From Anywhere;

Q&A Forum › Unit1 – ESP32 Wi-Fi Multisensor; Unit 7: Accessing the ESP32 Web Server From Anywhere;
0 Vote Up Vote Down
Joel Jacob asked 6 years ago

“Important: you need to let your computer on and running ngrok in order to maintain the tunnel online.”
What is the purpose of accessing from anywhere if we have to on the computer and run ngrok in order to be online?
Isn’t there any other way?

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

Hello Joel, there are three methods to access the ESP from anywhere:

  • Using ngrok or a similar secure tunnel service
  • Connect your ESP to a free/paid cloud service (Blynk.cc, AdafruitIO, MyDevices, etc)
  • Do router port forwarding (not secure)

I recommend using ngrok.com, because it’s more secure than port forwarding and you have full control.

I usually recommend for permanent solutions using ngrok running on a Raspberry Pi (the Raspberry Pi could also run Home Assistant, Node-RED, store a database, etc).

0 Vote Up Vote Down
Joel Jacob answered 6 years ago

how ngrok can be run on raspberry pi?.do you have any project examples

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

Yes, you just need to follow these instructions:

1. After creating your account, login and go to the “Auth” tab to find Your Tunnel Authtoken. Copy your unique Your Tunnel Authtoken to a safe place.

2. To install ngrok in the RPi, you need to have an SSH communication established with your Raspberry Pi. Type the following command to download the latest version of ngrok software:

pi@raspberry:~ $ wget http://randomnerdtutorials.com/ngrokARM

Unzip the ngrok software using:

pi@raspberry:~ $ unzip ngrokARM

3. After that, run the following command to run ngrok (replace the highlighted text with your own Tunnel Authtoken and ESP IP address):

pi@raspberry:~ $ ./ngrok tcp 192.168.1.70:8888 --authtoken 3V1MfHcNMD9rhBizf8TRs_2whamY91tqX4

4. You can access your web server from anywhere in the world by typing your unique URL (for example http://0.tcp.ngrok.io:54626/) in a browser.

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.