• 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

cannot get ngrok to work

Q&A Forum › Category: ESP32 › cannot get ngrok to work
0 Vote Up Vote Down
Ron Forbes asked 5 years ago

have been following the tutorials on the esp32 web server and can controll the two leds without any trouble, but
on page 185 of learn esp32 (2nd edition) with arduino ide i can get up to here but when i try to install the token i keep on getting error message
C:\Windows\system32>ngrok tcp 192.168.0.12:8888 –authtoken 1hfgoDj7ckWRfVb16C2RvZ4XpNj_5quHbvgqobfPES9fcgCP
‘ngrok’ is not recognized as an internal or external command,
operable program or batch file.
any help would be appreciated
Ron Forbes (from the land downunder)

7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Ron.
Did you download ngrok and clicked on the executable file? Only after that, you should run the command.
Regards,
Sara

0 Vote Up Vote Down
Ron Forbes answered 5 years ago

yes have done all that

” VERSION:
2.3.35
AUTHOR:
inconshreveable – <alan@ngrok.com>
COMMANDS:
authtoken save authtoken to configuration file
credits prints author and licensing information
http start an HTTP tunnel
start start tunnels by name from the configuration file
tcp start a TCP tunnel
tls start a TLS tunnel
update update ngrok to the latest version
version print the version string

help Shows a list of commands or help for one command
ngrok is a command line application, try typing ‘ngrok.exe http 80′
at this terminal prompt to expose port 80.
C:\Windows\system32> “”
this is the version of ngrok im using and this is what i type in
C:\Windows\system32>ngrok tcp 192.168.0.12:8888 — authtoken 1hfgoDj7ckWRfVb16C2RvZ4XpNj_5quHbvgqobfPES9fcgCP
looks exactly light the wording on page 185
and this is the response
”’ngrok’ is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\system32>”

can you see if ive done something wrong, have checked spelling twice and still get the same answer

Ron Forbes

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi again.

I think I know why that error is happening.

After you download the .zip folder with the ngrok executable file, you need to unzip it. If you just try to run the software directly from the .zip folder, it will not run properly and it will give that error.

So, extract the file from the .zip folder and open the ngrok file. Then, proceed as shown in the tutorial.

Let me know if this solves your problem.

Regards,
Sara

0 Vote Up Vote Down
Ron Forbes answered 5 years ago

were getting there, this is what i have typed in
ngrok tcp 192.168.0.12:8888 — authtoken 1hfgoDj7ckWRfVb16C2RvZ4XpNj_5quHbvgqobfPES9fcgCP
and now get error message,
ERROR: You must specify a single argument: a port or address to tunnel to.
ERROR: You specified 4 arguments: [192.168.0.12:8888 — authtoken 1hfgoDj7ckWRfVb16C2RvZ4XpNj_5quHbvgqobfPES9fcgCP]
ERROR: For example, to expose port 80, run ‘ngrok tcp 80’.

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi.
Instead of a dash “-” you need two dashes like this “–”
So, your command should be:

ngrok tcp 192.168.0.12:8888 --authtoken 1hfgoDj7ckWRfVb16C2RvZ4XpNj_5quHbvgqobfPES9fcgCP

Let me know if it works now.
Regards,
Sara

0 Vote Up Vote Down
Ron Forbes answered 5 years ago

Dear Sara
Thank you so very much, i thought i had checked everything twice, i’ve had my daughter check from her place and she can see and change the buttons.
Ron

0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Great!
I’ll mark this issue as resolved.
If you need further help, you just need to open a new question in our forum.
Regards,
Sara

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.