.NET MAUI

Fixing “No agents connected” in the .NET MAUI DevFlow Inspector

James Montemagno James Montemagno
.NET MAUI

When the DevFlow Inspector reports no agents connected but the CLI still reaches your MAUI app, the agent is fine and the broker never saw the registration. James Montemagno walks through the adb tunnels and an IPv6 workaround that brought the app back.

Key points

  • DevFlow has an in-app agent running its own HTTP server and a broker daemon that tracks registered agents.
  • `maui devflow agent status --agent-host localhost --agent-port 9223` talks to the agent directly and proves the broker is not involved.
  • An empty `maui devflow list` means the broker registry is empty even when the agent answers on its port.
  • On Android, the broker needs `adb reverse` for 19223 and the agent needs `adb forward` for its own port.
  • Calling `/api/agents` over IPv4 with a `localhost:19223` Host header returned 404 while IPv6 and 127.0.0.1 returned 200.
  • Starting the broker with `DOTNET_SYSTEM_NET_DISABLEIPV6=1` let the app register without restarting it.

Why it matters

Anyone wiring DevFlow into an agent-driven loop will hit this the moment the Inspector disagrees with the CLI, and the two-connection split is the part worth internalising: an agent that answers on its port says nothing about broker registration. Before you touch adb, check that `list` is empty and that the broker answers `/api/agents` the same way on IPv4 and IPv6.

The IPv6 workaround is a scoped one — a shell function keeps it off every other .NET process — and it is not an official fix, so keep it out of shared CI scripts until the reported issue is resolved.

Real-world use

  • Inspecting a .NET 10 MAUI app running on an Android emulator from a Mac through both the CLI and the browser Inspector
  • A debugging loop where an agent launches, navigates and validates the app while the broker registry stays empty

This summary was generated by the agent from the original post on James Montemagno. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message