EvilZone

Other => Found it on the Webs => : proxx September 04, 2014, 04:39:59 PM

: ngrok
: proxx September 04, 2014, 04:39:59 PM
Something I happened to stumble upon, kinda neat:

https://ngrok.com/usage

Expose a local web server to the internet

ngrok lets you expose a locally running web service to the internet. Just tell ngrok which port your web server is running on. Let's try opening port 80 to the internet.
Example: Open port 80 on your local machine to the internet

$ ngrok 80

ngrok

Tunnel Status                 online
Version                       1.3/1.3
Forwarding                    http://3a4bfceb.ngrok.com -> 127.0.0.1:80
Forwarding                    https://3a4bfceb.ngrok.com -> 127.0.0.1:80
Web Interface                 http://127.0.0.1:4040
# Conn                        0
Avg Conn Time                 0.00ms

When you run ngrok, it will display a UI in your terminal with the current status of the tunnel. This includes the public URL it has allocated to you which will forward to your local web service: https://3a4bfceb.ngrok.com.
: Re: ngrok
: Kulverstukas September 04, 2014, 06:06:41 PM
I can't think of practical uses, except for when you need to share a folder with the public that could be accessible from the internet without using apache. However you would still need to forward ports...
: Re: ngrok
: proxx September 04, 2014, 06:44:04 PM

python -m SimpleHTTPServer

Execute that and the other command and you have that folder on the public webs.