tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
80.22k stars 2.39k 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 2 weeks ago

CatStudioApp commented 2 weeks 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 2 weeks 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?