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
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
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