How to test your local web applications in the internet (from different network) without deploying anything.

How to test your local web applications in the internet (from different network) without deploying anything.

Actually it is pretty straightforward you just have to download and use ngrok(it’s free):
[program]
https://ngrok.com/
[/program]

In my case I’m using a rails application so I just need to:

# run my server in localhost
rails server
# at this moment it is available in http://localhost:3000 by default
# if you want to test from another network this application go to the path 
# where it is downloaded your ngrok file
./ngrok 3000
# after that I can access my application all over the internet for example:
Tunnel Status                 online
Version                       1.7/1.7
Forwarding                    http://myaccessnumer.ngrok.com -> 127.0.0.1:3000
Forwarding                    https://myaccessnumber.ngrok.com -> 127.0.0.1:3000
Web Interface                 127.0.0.1:4040
# Conn                        0
Avg Conn Time                 0.00ms

That’s it there are a lot of options, for example you can select the subdomain you want!!!

Regards and peace
H.

No Comments

Post A Comment