Local Tunnel


Procedure to expose your locally hosted application to Internet

Ngrok allows you to expose a web server running on your local machine/server to the internet. Just tell ngrok what port your web server is listening on.

1. Download/Installation of Ngrok

Download single executable file. No installation or dependencies are required to run this program. Just unzip and run ngrok.

2. Run Ngrok to explore your application to internet

When you start ngrok, it will display a UI in your terminal with the public URL of your tunnel and other status and metrics information about connections made over your tunnel.

Type "ngrok http port Number" you will get the below Console ui

The ngrok console UI
--------------------------------------------------------
ngrok by @inconshreveable

Tunnel Status                 online
Version                       2.0/2.0
Web Interface                 http://127.0.0.1:4040
Forwarding                    http://92832de0.ngrok.io -> localhost:80
Forwarding                    https://92832de0.ngrok.io -> localhost:80

Connnections                  ttl     opn     rt1     rt5     p50     p90
                              0       0       0.00    0.00    0.00    0.00
---------------------------------------------------------------------------------------------

Use the forwarding http/https links to access the application on CloudQA

If you don't know what port your web server is listening on, it's probably port 80, the default for HTTP.

Example: Expose a web server on port 80 of your local machine to the internet command: ngrok http 80

NOTE:

  • The URL is accessible on internet until the ngrok is running
  • Every time you run this program for your application it generates a new url

results matching ""

    No results matching ""