Sep 19 2021
what is TUNNELing
many times i have a webserver like on RPI / ESPwhat works fine inside my LAN,
but if want to show it to someone outside there is the basic idea
of port forward.. a setting in your router, if from outside someone
calls you current IP ( you need to find out and tell him )
and he calls it adding a port you configured for your webserver..
the router will connect him to your local_IP:port
but with many ISP that not work anymore...
* companies ( with own servers ) would buy a not cheap fixIP line anyway.
but for short temporary tests:
i need a TUNNEL
from some webinfo like here and here
i got the idea to test NGROK
with or without account ( anyway not yet buy a paid service )
download a program
ngrok
* i try it on windows 10 PC and on Raspberry Pi ( linux arm version )
* if you have a account ( my confirmation email took 2 days?? )
you need to use the
ngrok --authtoken xyz...
what you get after login to your ( confirmed ) accout
again for understanding this service program must run inside your LAN
( but not need to be on the device with the webserver )
but you must tell it where to link to:
http://192.168.1.219:8888 ( in my case a ESP32 with a little measuring data page )
so after i had that service program running, telling me a "public"
web page for the outsider to call like
http://N.
i needed a first test:
local:
mobile WIFI browser: http://192.168.1.219:8888
remote:
mobile ( with WIFI OFF to be sure i not talk my LAN )
http://0.tcp.ngrok.io.12345
checkout also the local webinterface
besides you might find my local path confusing...
on RPI4 desktop i have:
and in that working path is the ngrok app
and above called
this will link anyone you give the
http://x.tcp.ngrok.io.123456
to your local server,
here to my ESP32 Power Meter web page
about that more info here