tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
85.18k stars 2.57k forks source link

[feat] [2.0 beta] allow the configuration for the ip address for frontend dev server as well for ios/android #10248

Open CatStudioApp opened 4 months ago

CatStudioApp commented 4 months ago

Describe the problem

currently it is hard to debug because my android/ios devices always looking for an internal ip address.

as a mobile dev with 10+ year experience, I haven't found a way to debug tauri 2.0 apps on mobile devices

Screenshot_20240710-150512

Describe the solution you'd like

on android, we can use adb reverse to forward the port. on ios, it would be better to expose an env var to configure this port

Alternatives considered

No response

Additional context

No response

CatStudioApp commented 4 months ago

sorry just noticed

pnpm tauri android dev --force-ip-prompt 127.0.0.1

is there a way to make the param 127.0.0.1 work?

winjeysong commented 3 months ago

any new progress here? I encountered the same problem...