![Open in Gitpod](https://camo.githubusercontent.com/b04f5659467d23b5109ba935a40c00decd264eea25c22d50a118021349eea94f/68747470733a2f2f676974706f642e696f2f627574746f6e2f6f70656e2d696e2d676974706f642e737667)
![GitHub stars](https://camo.githubusercontent.com/f17bdf81ffb20d759d3d312410cf59200fcd9e50e36f57a5d7383fb5c7f0d87e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f76746f727265732f676974706f642d666c75747465723f7374796c653d736f6369616c266c6162656c3d53746172)
flutter run -d web-server --web-port=8080 --web-hostname=0.0.0.0
Check your mobile lan ip and feel free to use your own port configuration
SMARTPHONE_LOCAL_IP = 192.168.0.10 (LAN IP)
INTERNAL_PORT = 5555
[Localhost command] Run the following command to switch adb on your device to work over the network using the internal port
[Localhost command] Check adb connection from localhost
adb connect SMARTPHONE_LOCAL_IP:INTERNAL_PORT
[Localhost command] Starts ngrok tcp forwarding to your mobile or if you prefer you can forward a chosen port on your router to the mobile
- Ngrok describes itself as “expose a local server behind a NAT or firewall to the internet.”, making our lives easier.
ngrok tcp SMARTPHONE_LOCAL_IP:INTERNAL_PORT
[Gitpod command] Connect from your Gitpod to your localhost for debugging
adb connect NGROK_ADDRESS:NGROK_PORT
flutter run -d NGROK_ADDRESS:NGROK_PORT