Author Topic: ngrok  (Read 502 times)

0 Members and 1 Guest are viewing this topic.

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
ngrok
« on: September 04, 2014, 04:39:59 pm »
Something I happened to stumble upon, kinda neat:

https://ngrok.com/usage

Quote
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.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: ngrok
« Reply #1 on: 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...

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: ngrok
« Reply #2 on: 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.
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage