Skip to main content

Attaching DevTools to the remote tool

Developer Tools can be connected to applications running on different machines. This guide covers two scenarios:

  1. Local network access (e.g., Virtual Machines or devices on same Wi-Fi)
  2. Internet access using VPN (recommended for security)

Developer Tools runs an HTTP server on port 29414. The key is ensuring this server is accessible from the connecting machine.

Local network access​

  1. Retrieve local-network IP address of the machine running Developer Tools:

    • Windows: Open Command Prompt and run ipconfig.
    • macOS/Linux: Open Terminal and run ip addr or ifconfig.
    • Look for an IPv4 address that starts with 192.168., used on most home networks.
  2. Configure your application to use this IP:

this.AttachDeveloperTools(o =>
{
o.Protocol = DeveloperToolsProtocol.CreateHttp(IPAddress.Parse("YOUR_LOCAL_NETWORK_HOST_IP"));
});
  1. Start Developer Tools (via avdt command)
  2. In the settings, make sure that Allow Any IP is enabled. If not, enable the option and restart the app.
  3. Launch your application on the second machine.
  4. Press F12 to connect.
note

Ensure firewalls on both machines allow port 29414.

Internet access via VPN​

While it's possible to avoid VPN and set up port forwarding on the public network, it's not recommended. Keeping ports open is generally considered bad practice.

Instead, this tutorial uses VPN to set up limited access between machines. Tailscale is chosen as the example VPN in the following steps.

Ensure that Tailscale CLI can be used on the machine with developer tools. See Tailscale CLI.

  1. Follow the Tailscale Quick Start guide to install it on both machines and set up access between them. This tutorial specifically focuses on the MagicDNS feature.

  2. Once Tailscale is installed and connected on both devices, it's necessary to serve the 29414 port from the machine with installed Developer Tools. Run one of the following commands:

    # Windows
    tailscale serve 29414

    # macOS
    /Applications/Tailscale.app/Contents/MacOS/Tailscale serve 29414

    # Wait for this CLI output
    Available within your tailnet:

    https://machinename.tail.ts.net/
    |-- proxy http://127.0.0.1:29414

    Press Ctrl+C to exit.

    Copy the https://machinename.tail.ts.net/ URL from this output. You need it in the next step.

  3. Use the URL from the previous step in your AttachDeveloperTools options:

    this.AttachDeveloperTools(o =>
    {
    o.Protocol = DeveloperToolsProtocol.CreateHttp(new Uri("https://machinename.tail.ts.net"));
    });
  4. Start Developer Tools via the avdt command.

  5. Launch your application on the second machine.

  6. Press F12 to connect.

Connected via VPN

Changing default port​

Under some conditions, 29414 default port might not be available.

To change the port, both Developer Tools and AttachDeveloperTools need to be adjusted.

In the Developer Tools, change the HTTP port parameter on the settings page and restart the app. See Settings for more details.

On AttachDeveloperTools side, specify new port in the DeveloperToolsProtocol.CreateHttp method as an optional parameter.

See also​