Skip to content

Add a configurable bind address for the nsgo dev server #2001

Closed

Description

@1514599514

What you want to do / 想做什么

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 仍不支持。

NSGo version / NSGo 版本

github.com/nsgo-dev/nsgo v0.2.1-0.20261122082805-408a36e5c5ae

Development machine / 开发环境

Windows 11, Go 1.27.4

Target devices / 运行设备

Android device or emulator connected through USB ADB or the local network

Activity

  1. added
    enhancement
    needs triage
    on Nov 22, 2026
  2. github-actions commented on Nov 22, 2026

    @github-actions

    Thanks for the report! This is your first issue here.

    • Please make sure it holds no credentials, personal data or private paths, and edit them out if it does.
    • For a bug, name the target, the NSGo commit and the smallest steps that reproduce it; that speeds things up a lot.
    • Report a security problem through the private advisory form instead of a public issue.
  3. added a commit that references this issue on Nov 22, 2026
    f86d585
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementneeds triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions