Hello,
Doing the unit 6 about ESPCAM everywhere, I am stuck with NGROK :
xxxxxx@raspberrypi:~ $ ./ngrok http -auth=”xxx:xxxxx” 1880
Your ngrok-agent version “2.3.41” is too old. The minimum supported agent version for your account is “3.2.0”. Please update to a newer version with `ngrok update`, by downloading from https://ngrok.com/download, or by updating your SDK version. Paid accounts are currently excluded from minimum agent version requirements. To begin handling traffic immediately without updating your agent, upgrade to a paid plan: https://dashboard.ngrok.com/billing/subscription.
I did that to upgrade :
xxxxx@raspberrypi:~ $ ngrok config upgrade
Upgraded config file: ‘/home/xxxx/.ngrok2/ngrok.yml’
Applied changes:
– Added ‘version: 3’
– Added ‘region: us’
– Migrated fields to agent block: [authtoken region]
– Migrated server_addr and/or region to connect_url
– Created a backup at: /home/ffr-pi/.ngrok2/ngrok.yml.v1.bak
—————
version: “3”
agent:
authtoken: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
connect_url: connect.us.ngrok-agent.com:443
then :
xxxxxxx@raspberrypi:~ $ ngrok config upgrade –relocate
Upgraded config file: ‘/home/xxxxxxx/.ngrok2/ngrok.yml’
Applied changes:
– Moved config file to default location: /home/ffr-pi/.config/ngrok/ngrok.yml
– Created a backup at: /home/xxxxxxxx/.ngrok2/ngrok.yml.v3.bak
—————
version: “3”
agent:
authtoken: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
connect_url: connect.us.ngrok-agent.com:443
And the problem is still there…
Any suggestion or tips ?
Regards,
Fabrice
Hi Sara,
I removed/purged ngrok in order to reinstall it.
version 3.18.4 installed and the problem still the same when I do this step :
./ngrok http -auth=”ruisan:pass” 1880
When you try to access the UI, you’ll be asked to enter a username (ruisan) and a
password (pass).
I get that :
xxxxxx@raspberrypi:~ $ ./ngrok http -auth=”xxx:xxxxx” 1880
Your ngrok-agent version “2.3.41” is too old. The minimum supported agent version for your account is “3.2.0”. Please update to a newer version with `ngrok update`, by downloading from https://ngrok.com/download, or by updating your SDK version. Paid accounts are currently excluded from minimum agent version requirements. To begin handling traffic immediately without updating your agent, upgrade to a paid plan:…
Regards,
Fabrice
Hi.
Due to some updates, the instructions have changed.
I tested them and they work for me. Let me know if these work for you so that I can update the eBook:
1) Go to https://ngrok.com to create an account.
2) At the left sidebar, click on Identity & Access > Authtokens
3) Create a new tunnel authtoken. Make sure to save your tunnel authtoken because you won’t be able to see it again.
4) Run the following command on the Raspberry Pi to download and install the latest version of ngrok:
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok
5) Enter the following command to authenticate your ngrok account (replace the bold highlighted text with your own Authtoken):
ngrok config add-authtoken 2lElPWw5sI4OKpNmzUb5sJ4qamR_2q4G--
6) In your terminal window, enter the following command, but replace the bold text with your ESP32 IP address:
ngrok http 192.168.1.77:80 --scheme http,https
lgnore any warning about deprecated commands.
7) Copy your unique link (the second one that ends with .app). Don’t press CTRL+C in your Terminal window, otherwise it will quit ngrok. To copy the URL, select it and click with the right side of the mouse. The URL will be copied to the clipboard.
That’s t. Now the streaming web server should be live on that URL.
Please give me your feedback.
Regards,
Sara
Sara,
I followed your 7 steps and got that :
ERR_NGROK_8012
Traffic was successfully tunneled to the ngrok agent, but the agent failed to establish a connection to the upstream web service at http://192.168.1.20:80. The error encountered was:
dial tcp 192.168.1.20:80: connect: connection refused
Regards,
Fabrice
Did you close any other tabs with the video streaming?
It can only stream to one client at a time.
Do you have any other boards running a web server at the same time?
Regards,
Sara
I have nothing else running with ngrok.
The video streaming works well with nodered.
I got that with putty.
Session Status online
Account fabrice (Plan: Free)
Version 3.18.4
Region United States (us)
Latency 107ms
Web Interface http://127.0.0.1:4040
Forwarding http://d8e9-2a02-8428-83e2-7501-cb3c-6c0c———.ngrok-free.app -> http://192.168.1.
Forwarding https://d8e9-2a02-8428-83e2-7501-cb3c-6c0c——–.ngrok-free.app -> http://192.168.1
Connections ttl opn rt1 rt5 p50 p90
4 0 0.03 0.01 0.01 0.01
HTTP Requests
————-
16:47:47.703 CET GET /favicon.ico 502 Bad Gateway
16:47:47.016 CET GET / 502 Bad Gateway
16:46:08.989 CET GET /favicon.ico 502 Bad Gateway
16:46:08.296 CET GET / 502 Bad Gateway
Fabrice
Hi agian.
I’m so sorry that I gave you the wrong instructions at point number 6. That will port-foward the ESP32-CAM streaming, and not Node-RED (my mistake).
Is everything working correctly with Node-RED?
Regards,
Sara
Hi Sara,
Node-Red is fine.
ngrok does not work. I will keep going to find a solution.
Thanks for your help.
Regards,
Fabrice
Hi again.
Basically, on point number 6, instead of typing the ESP32 IP address, you must type your Node-RED address (with the :1880) like this:
ngrok http 192.168.1.74:1880 --scheme http,https
Then, you’ll get a link to access Node-RED from anywhere.
I hope this helps.
Regards,
Sara
Sara,
I did it by following that :
-
Incorrect Port Specified
Cause: The port in your ngrok command doesn’t match your local service’s port.
Resolution:- Verify the port your local service is using.
- Update your ngrok command to use the correct port.
- Example: Use
ngrok http 3000
if your service runs on port 3000.
It works at home like opening Node-red. Just need to try it somewhere else.
Regards,
Fabrice
Good evening Sara,
in order to close this topic and to clarify the issue.
1- refer to ESP32_CAM_Projects_eBook_V1_3, page 382, ./ngrok http -auth=”ruisan:pass” 1880 did not work.
2- By following your process previously described (with 7 steps) about ngrok, everything OK with port 1880 (ngrok http 192.168.1.20:1880 –scheme http,https).
3-https://d4ef-2a02-8428-83e2-7501-cb3c——————.ngrok-free.app -> http://192.168.1.20:1880 accesses to node-red
4-https://d4ef-2a02-8428-83e2-7501-cb3c——————.ngrok-free.app/ui gives access to the node-red dashboard by using mobile data on my phone.
So now let’s go further for enjoying esp32cam with your book.
Regards,
Fabrice