Tunnel Expo Go

install ngrok

npm i -g @expo/ngrok

run app

yarn start --tunnel

Tunnel API

install ngrok

brew install ngrok

config / register

  1. go to https://dashboard.ngrok.com/signup

  2. get add-auth token from https://dashboard.ngrok.com/get-started/setup/macos or where ever you get it from the website

  3. add token to terminal ngrok config add-authtoken [token]

run API

  1. create ephemeral tunnel ngrok http http://localhost:3000

  2. create named tunnel from terminal run: ngrok http http://localhost:3000 --name [name]

    • example output includes Forwarding https://b9d5ab4e28ce.ngrok-free.app -> http://localhost:3000
    • I use the "https://b9d5ab4e28ce.ngrok-free.app" in my react native app fetch requests to the API running on my workstation.