All guides
Windows Agent

Set up an agent on a Windows PC

Already have a Windows PC that stays on at the site? One download turns it into an agent — no extra hardware, and nothing else to install.

Before You Start

  • You need a MikRouter account with at least one agent created under Agents.
  • Open the agent's detail page and keep its token and tunnel host nearby — you'll paste them into the app.
  • A PC running Windows 10 or 11, on the same network as the devices you want to reach.
  • You need to be able to approve an administrator prompt on it once, if you install the background service — an optional last step in the app, and step 2 of the command-line route.

What you are installing

One program. The MikRouter agent is a single self-contained executable — there is no Visual C++ redistributable, no .NET and no other runtime to install first. It connects on its own as soon as it has your tunnel host and device token.

Separately, it can register a background service that starts with the PC and keeps running after you sign out, so nobody has to stay signed in. That is the last step and it is optional — the agent works without it.

1

Download the agent and unpack it

Save it somewhere you can find it again, such as your Downloads folder, then right-click the file and choose Extract All. Inside are the program, mikrouter-agent.exe, plus its licence and a short read-me — nothing else to fetch and nothing else to install.

Got an ARM PC — a Snapdragon laptop, or a Surface that says "ARM-based processor" under SettingsSystemAbout? Take mikrouter-agent-windows-arm64.zip instead. Everything below is the same. If you are not sure, use the first download — it runs on every Windows PC.

Windows will warn you the first time

This build is not signed with a commercial certificate yet, so SmartScreen shows "Windows protected your PC" the first time you run it. Choose More info, then Run anyway. You only do this once.
2

Open it — the settings window appears

Double-click mikrouter-agent.exe in the folder you unpacked. The window below opens straight away: there is no sign-in, no installer wizard and nothing to accept. Everything you need is on this one screen.
MikRouter Agent

Not set up yet

Fill in the tunnel host and the device token, then choose Start tunnel. Installing the background service is optional, and is what keeps the tunnel up after you sign out.

TUNNEL CONNECTION

Tunnel hoste.g. test.mikrouter.com
Tunnel port443Use TLS (wss)
Device token48 hexadecimal characters from the dashboard
Maximum streams64

1–1024 simultaneous tunnelled connections (default 64). One web page can use several. Raising this uses more memory and sockets; it does not add mappings or make the connection faster.

STARTUP

BACKGROUND SERVICE

Not installed

Install as a background service

The tunnel can run without any of this — Start tunnel connects straight away, for as long as this app is open. The background service is what keeps it up when the app is closed: it starts with this computer, before anyone signs in, and keeps running after you sign out. Installing it needs administrator rights.

ABOUT

Version 1.0.0 (windows agent)

Windows 11 Pro 24H2 (amd64)

Settings: C:\Users\you\AppData\Local\MikRouter Agent\config.json

Log: C:\Users\you\AppData\Local\MikRouter Agent\agent.log

For more info visit https://mikrouter.com

SaveStart tunnelHideQuit
3

Enter the tunnel host and device token

Copy both values from your agent's page in the MikRouter dashboard, paste them into Tunnel host and Device token, then choose Save followed by Start tunnel. Leave Tunnel port at 443 and Use TLS (wss) ticked unless your dashboard shows different values.
FieldValue
hosttest.mikrouter.com
port443
tlstrue
token<your agent token>

test.mikrouter.com is not a real address — it's a stand-in for this guide. Your agent's real tunnel host depends on the agent server you picked when you created the agent, so copy the exact value from the agent's detail page rather than typing the one shown here.

Maximum streams

Leave this at 64. It is how many tunnelled connections the agent will carry at once — one web page can use several. Raising it uses more memory and sockets; it does not add mappings or make the connection faster.
4

Confirm the agent is Online in the dashboard

Open Agents and pick the agent. Within a few seconds its badge turns Online and the Agent section fills in with what the PC itself reports — its Windows version and architecture, LAN IP, available RAM and agent version. The Wi-Fi tiles read on a wired machine.
https://mikrouter.com/user/agents/…

Front Desk PC

Windows 11 Pro 24H2 (amd64)Online
Last seen just now✎ Edit agent

Agent

Live status reported by the agent — only while it's online.

Server Manila · test.mikrouter.com

Hardware

Windows 11 Pro 24H2 (amd64)

Wi-Fi network

Wi-Fi signal

IP address

192.168.1.100

Firmware

v1.0.0

RAM available

7.1 GB

Active streams

0 / 64

Connected

just now

It is already working at this point

The tunnel runs inside this app — the window says so — so the agent connects straight away, with nothing installed. Step 5 explains the optional background service, which is what makes it survive closing the app, signing out and rebooting.
5

Install it as a background service — optional

You can stop here. The agent is connected and you can start adding mappings. This step is worth doing when the PC is meant to stay reachable on its own — and you can come back to it at any time.

What the background service actually is

Right now the tunnel is running inside the app. That means it lives and dies with the app: close it, sign out, or restart the PC, and the tunnel goes with it. Nothing is broken about that — it just needs somebody signed in with the app open.

The background service moves the tunnel out of the app and into Windows itself, as a Windows service — a program Windows starts at boot, before anyone signs in, and keeps running after everyone signs out. The window then stops being the thing that holds the tunnel up and becomes just a remote control for it: you can close it, quit it, or sign out entirely and the tunnel carries on.

So do you need it?

Install it for anything you are leaving in place — a PC at the site, or any machine that has to come back on its own after a power cut or a restart. Without it, a reboot leaves the agent offline until someone signs in and opens the app.

Skip it if you are trying MikRouter out, or using a PC you are sitting at anyway and do not mind restarting the tunnel yourself.

To install it: in the STARTUP section choose Install as a background service and approve the Windows administrator prompt — it asks because a program that starts before sign-in is a machine-wide change. Your saved settings are carried over, so nothing is retyped. Afterwards the row reads Installed — the tunnel starts with Windows and a MikRouter icon appears in the notification area near the clock.

MikRouter Agent

Connected to test.mikrouter.com:443

0 of 64 streams in use · LAN address 192.168.1.100

TUNNEL CONNECTION

Tunnel hosttest.mikrouter.com
Tunnel port443Use TLS (wss)
Device token0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x0x
Maximum streams64

1–1024 simultaneous tunnelled connections (default 64). One web page can use several. Raising this uses more memory and sockets; it does not add mappings or make the connection faster.

STARTUP

BACKGROUND SERVICE

Installed — the tunnel starts with Windows

Uninstall the background serviceStop the background service

The tunnel can run without any of this — Start tunnel connects straight away, for as long as this app is open. The background service is what keeps it up when the app is closed: it starts with this computer, before anyone signs in, and keeps running after you sign out. Installing it needs administrator rights.

ABOUT

Version 1.0.0 (windows agent)

Windows 11 Pro 24H2 (amd64)

Settings: C:\ProgramData\MikRouter Agent\state\config.json

Log: C:\ProgramData\MikRouter Agent\logs\agent.log

For more info visit https://mikrouter.com

SaveStop tunnelCheck for updatesHideQuit

Installed. The tunnel now starts with Windows and keeps running after you sign out.

The agent is connected — what's next

Nothing is reachable from the internet yet. That happens when you add mappingson the agent's detail page, one per LAN service you want to reach. It works the same for every kind of agent — the Connect ESP32 agent guide covers it.