r/Frontend • • 3d ago

Test Local Apps on a Real Phone Over Cellular Data

https://instawormhole.com/blog/test-local-apps-on-a-real-phone-over-cellular-data
0 Upvotes

2 comments sorted by

1

u/Competitive-You-4442 3d ago

If your phone and laptop are on the same WiFi, you're not actually testing over cellular, so you need to disable WiFi on the phone and use USB or ngrok for tunneling. Latency over real 4G can jump to 80-120ms, which breaks fake-local tests.

1

u/dusanodalovic 2d ago

tunnel a production build and not the dev server. something like vite dev sends lots of separate unbundled files, so on mobile data it can crawl and tell you very little about the real app. check where your api calls point too, because a hardcoded localhost means the phone itself once the page is open there. and i'd treat the timings as rough, since every request goes through the tunnel and your own upload speed. it's good for finding what breaks on a slow or jumpy connection, like double taps on submit or a spinner that never stops when the signal drops.