> ## Documentation Index
> Fetch the complete documentation index at: https://docs.celo.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Ngrok Setup

When builidng dApps for MiniPay locally, you want to test the dApp inside MiniPay wallet on your phone.

But since the dApp is running locally, you cannot simply visit localhost on your phone to open the dApp on your phone.

To solve this, we use `ngrok`.

`ngrok` allows us to share our localhost by providing us with a temporary web url that can be used on any device!

## Installing Ngrok

1. Visit [ngrok.com](https://ngrok.com)

<Frame>
  <img src="https://mintcdn.com/celo-64ac69bd/oYb-8nnpFO3sIJto/img/developer/build-on-minipay/ngrok-setup/1.png?fit=max&auto=format&n=oYb-8nnpFO3sIJto&q=85&s=6d8730b65c523f5bd84f72d7d0f43027" alt="ngrok.com" width="2714" height="1792" data-path="img/developer/build-on-minipay/ngrok-setup/1.png" />
</Frame>

2. Sign up

<Frame>
  <img src="https://mintcdn.com/celo-64ac69bd/oYb-8nnpFO3sIJto/img/developer/build-on-minipay/ngrok-setup/2.png?fit=max&auto=format&n=oYb-8nnpFO3sIJto&q=85&s=c6d422935f99ac5bb1c1777e78217b1d" alt="sign up ngrok" width="2714" height="1792" data-path="img/developer/build-on-minipay/ngrok-setup/2.png" />
</Frame>

3. The dashboard will have instructions based on your OS on how to install and use ngrok!

<Frame>
  <img src="https://mintcdn.com/celo-64ac69bd/oYb-8nnpFO3sIJto/img/developer/build-on-minipay/ngrok-setup/3.png?fit=max&auto=format&n=oYb-8nnpFO3sIJto&q=85&s=0022002787c138e33bc9c7098cb4397b" alt="dashboard" width="3296" height="1792" data-path="img/developer/build-on-minipay/ngrok-setup/3.png" />
</Frame>

4. Once installed you can use the following command to share your localhost port.

```bash theme={null}
> ngrok http [PORT]
```

The output looks something like this.

<Frame>
  <img src="https://mintcdn.com/celo-64ac69bd/oYb-8nnpFO3sIJto/img/developer/build-on-minipay/ngrok-setup/4.png?fit=max&auto=format&n=oYb-8nnpFO3sIJto&q=85&s=7da1c6911277d1bcaf46ce938f33dd91" alt="ngrok output" width="3400" height="926" data-path="img/developer/build-on-minipay/ngrok-setup/4.png" />
</Frame>

You can use the highlighted url to launch the localhost dApp on the [MiniPay's Site Tester](/build-on-celo/build-on-minipay/quickstart#test-your-mini-app-inside-minipay).
