Tunnel Expo Go
install ngrok
npm i -g @expo/ngrok
- tired yarn and it did not work
run app
yarn start --tunnel
Tunnel API
install ngrok
brew install ngrok
config / register
get add-auth token from https://dashboard.ngrok.com/get-started/setup/macos or where ever you get it from the website
add token to terminal
ngrok config add-authtoken [token]
run API
create ephemeral tunnel
ngrok http http://localhost:3000create 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.
- example output includes