You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a configurable bind address for the nsgo dev server #2001
When running go tool nsgo dev -target android on Windows, Windows Firewall shows a prompt asking whether the program may communicate on public networks.
The current Android development server listens on every network interface (0.0.0.0) because -port only changes the port. Please provide an option to limit the development server to local/private network interfaces, or to loopback only, when the device is connected locally through ADB.
A loopback-only or LAN-only mode would be useful for development over a local network or USB ADB, avoid unnecessary public-network exposure, and prevent the Windows public-network Firewall prompt.
For Android devices, adb reverse can connect the device to the host’s loopback server. A possible configuration or CLI option could be:
go tool nsgo dev -target android -host 127.0.0.1
or a project setting in nsgo.yaml, for example dev.host: 127.0.0.1
If full LAN access is needed for other targets, it should remain the default or be configurable independently.
Target platforms / 目标平台
Android
App language / 应用语言
Go
Latest version / 最新版本
I have checked that the latest NSGo release still lacks it. / 我已确认最新版 NSGo 仍不支持。
Activity
github-actions commentedon Nov 22, 2026
Thanks for the report! This is your first issue here.
feat(cli): add a dev server bind address