Skip to content

dart: a Flutter web session appears to serve the app on every interface (read in the Flutter tool source, not yet confirmed by a run) #1391

Backlog

Description

@debugmcpdev

Found by a sweep of every listener after #1387. Read in source, not confirmed by a run.

What the source says

For a Flutter web device (deviceId: "chrome", "edge" or "web-server"), the Dart adapter passes only -d <id> (packages/adapter-dart/src/dart-debug-adapter.ts). In the Flutter tool that was read (3.47.7), the web asset server's host then defaults to any, which becomes InternetAddress.anyIPv4 (devfs_config.dart, web_asset_server.dart), and the dwds debug-extension backend binds every interface as well. If that is what runs, a Flutter web debug session serves the app, its source maps and the dwds endpoints to the local network for as long as it lasts.

The doc comment beside that default says it "maps to localhost", which the code read does not do.

What is not known

  • Whether the path through flutter debug-adapter really ends at that default. One check of the listening sockets during a -d chrome session settles it.
  • What a remote peer can do with the dwds endpoints beyond reading the app's code.

Candidate change

The adapter adds --web-hostname localhost for web devices unless the user's toolArgs already carries one.

Activity

  1. added
    bug
    blocked
    on Nov 29, 2026
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

    blockedbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions