> **Sokil documentation pack**
> Language: English
> Station software: 20261126_usb_cameras
> UI build: c6b2dc620
> Generated: 2026-11-26
> Generated by the Sokil ground station UI from the documentation it ships. Download it again after every software update - the pack describes the version it was generated from.

<a id="gs-windows"></a>

# Windows ground station

**Summary:** Sokil for Windows on a Windows 11 PC - what the installer changes on the machine, handing USB devices between Sokil and Windows, switching Sokil off, uninstalling it, and reaching the station over the network.

**Audience:** pilots and field integrators

Open in the UI: http://10.1.1.30/help/guides/gs-windows

**Sokil for Windows** turns a Windows 11 PC into a ground station. The station is the same Linux
software every other ground station runs, inside **WSL2** - the Linux virtual machine built into
Windows - and you fly on the **Web OSD** in Chrome or Edge. The handset, the adapters and what setup
writes are the laptop station's: [Laptop pilot station](gs-laptop.md#gs-laptop). This page is what
is different on Windows - what the installer does to the PC, which USB devices it takes, how to
switch Sokil off or remove it, and how the station is reached over the network.

<a id="gs-windows--what-it-is"></a>

### What it is

- **Windows 11 22H2 (build 22621) or newer**, with CPU virtualization enabled in the firmware (AMD:
  _SVM Mode_; Intel: _VT-x_). The installer checks both and stops if either is not met.
- Sokil runs inside WSL2 in a Linux distro named **Ubuntu**. The package installs the station and the
  Web OSD, and nothing else; the native Sokil OSD is a separate download -
  [where the software comes from](gs-laptop.md#gs-laptop--where-the-software-comes-from).
- **Open the web UI and the Web OSD at `http://127.0.0.1/`**, which is what the _Sokil Web UI_ icon
  opens, rather than `http://localhost/`. Windows looks `localhost` up as the IPv6 address `::1`
  first while the station's web server listens on IPv4 only, so Chrome gets there only after a short
  fallback, and PowerShell's `Invoke-WebRequest` timed out when it was measured. `127.0.0.1` is
  the same machine over IPv4, and browsers treat it as a secure address the way they treat
  `localhost`, so the Web OSD's video decoder is available there - provided the browser supports the
  camera's codec (["This browser can't decode H.265"](troubleshooting-video.md#troubleshooting-video--this-browser-can-t-decode-h-265)).

⚠ **Use a PC dedicated to the ground station.** The installer changes the whole machine, not one
program: Windows features, a WSL setting shared by every Linux distro of your Windows user, a set of ports, the
firewall, browser policies and every USB device of three kinds. The next section lists all of it.
On a work PC that also runs its own WSL or Docker, a local web server, Arduino or ESP32 boards, those
changes land on that work too.

**What Sokil does NOT take.** It does not take the PC's network adapters: Ethernet and Wi-Fi keep
working for Windows exactly as before. Ubuntu _shows_ every one of them - `ip addr` inside it lists
them all - because mirrored networking shares the adapters with it, not because they were moved out
of Windows. And it takes no USB device except the three kinds below: a mouse, a keyboard, a webcam, a
USB drive or a USB network adapter stays with Windows.

<a id="gs-windows--what-the-installer-changes-on-the-pc"></a>

### What the installer changes on the PC

The installer prints this list and asks `Install Sokil and make these changes? [y/N]` before it
changes anything. The default is No, and answering No leaves the PC as it was.

<a id="gs-windows--windows-and-wsl"></a>

#### Windows and WSL

- Enables the Windows features **Virtual Machine Platform** and **Windows Subsystem for Linux**.
  Windows may need a restart to activate them: the installer offers one, and you run the installer
  again afterwards.
- Updates WSL and creates the WSL distro **Ubuntu**. ⚠ **If a distro named Ubuntu already exists, Sokil
  is installed into that one**, root becomes its default user, and Sokil starts inside it at
  Windows boot and when the installing user signs in. A developer who works in their own WSL Ubuntu
  should know that before answering.
- Writes `networkingMode=mirrored` into `%USERPROFILE%\.wslconfig`. That file is the Windows user's,
  not Sokil's: the setting applies to **every WSL distro of that user**, Docker Desktop's included.

<a id="gs-windows--ports-on-the-pc"></a>

#### Ports on the PC

WSL shares the PC's ports, so what the station listens on is taken on the PC itself. A Windows
program already using one of these ports collides with Sokil.

| Port | What holds it |
| --- | --- |
| TCP 80 | the web UI and the Web OSD |
| TCP 8333 | core's API |
| TCP 2222 | the station's SSH server |
| TCP 8502, 8503 | the camera's and the repeater's own web pages, forwarded over the radio link |
| UDP 9993 | ZeroTier |

<a id="gs-windows--firewall-and-zerotier"></a>

#### Firewall and ZeroTier

- Allows inbound connections to WSL in the **Hyper-V firewall**, so tablets, cameras and other
  stations on the network can reach the station.
- Adds the Windows firewall rule **Sokil WSL SSH (TCP 2222)**.
- If a **Windows ZeroTier client** is installed, asks whether to move it to another port, stop and
  disable it, or leave it alone. The two cannot share UDP 9993, and a client left there keeps
  Sokil's ZeroTier link down.

<a id="gs-windows--usb-devices"></a>

#### USB devices

- Installs **usbipd-win** through winget - the tool that hands a USB device from Windows to WSL.
- Adds an AutoBind policy for three USB hardware ids:

| Hardware id | Device |
| --- | --- |
| `1a86:7523` | a CH340 USB serial chip - on many ESP32 and Arduino-type boards and USB serial adapters |
| `303a:1001` | an Espressif ESP32-C3 or ESP32-S3 on its built-in USB |
| `1209:4f54` | an EdgeTX radio in USB Joystick mode |

⚠ **Every plugged-in device with one of these ids is taken from Windows and given to Sokil within a
few seconds**, taken again after a replug, and hidden from Windows programs while it is attached - no
COM port, nothing in Betaflight, EdgeTX Companion, a simulator or the Arduino and ESP flashing tools.
That is not only the station's own adapters: an Arduino clone with a CH340 or an ESP32-C3 / S3
development board plugged into this PC goes to Sokil too. Other USB devices are never touched.

<a id="gs-windows--tasks-icons-and-browser-settings"></a>

#### Tasks, icons and browser settings

- Registers the scheduled task **Sokil WSL**, which runs at Windows boot and when the installing
  user signs in: it starts the distro, keeps it running and starts the USB monitor. Also
  **Sokil Serial to WSL**, **Sokil Serial to Windows** and **Sokil USB status**, which the USB icons run.
- Creates the desktop icons **Sokil USB to Sokil**, **Sokil USB to Windows**, **Sokil USB status**
  and **Sokil Web UI** - the last one also in the Start menu.
- Writes managed policies for Chrome and Edge: the insecure origins `10.1.1.30`, `10.1.1.40` and
  `localhost` treated as trusted, so another station's Web OSD can decode video over plain http when
  the browser supports the camera's codec;
  hardware acceleration on; no prompt to become the default browser.
- Writes its own files to `C:\ProgramData\Sokil`.

<a id="gs-windows--inside-ubuntu"></a>

#### Inside Ubuntu

The station's SSH account (support provides the credentials), an SSH server on port 2222, ZeroTier,
and the Sokil services.

<a id="gs-windows--unattended-installs"></a>

#### Unattended installs

An install nobody is there to answer must accept the list up front: `-Yes` on the command line
(`install.bat -Yes` passes it on), or `SOKIL_WINDOWS_ACCEPT=1` in the environment. With no console to
ask on and neither of those, the installer stops before it changes anything.

<a id="gs-windows--installing"></a>

### Installing

1. Unpack the **Sokil for Windows** package from **Help > Resources**.
2. Double-click `install.bat`. It asks Windows for administrator rights itself.
3. Read the list and answer `y`.
4. If Windows needs a restart, accept it, and run `install.bat` again after the restart.
5. Read the last screen. **INSTALL COMPLETE** is done; **FINISHED WITH WARNINGS** lists the optional
   steps that were skipped and is not a failure; **INSTALL FAILED** names the step -
   [the Windows installer fails part way](troubleshooting-pilot-computer.md#troubleshooting-pilot-computer--the-windows-installer-fails-part-way).
6. Open **Sokil Web UI** and set the station up as a laptop station:
   [what setup asks and writes](gs-laptop.md#gs-laptop--what-setup-asks-and-writes).

An ESP32-C3 or ESP32-S3 adapter appears inside Ubuntu as `/dev/ttyACM0`, while the handset input's
**Serial port** (parameter `rc_crsf_serial`) defaults to `/dev/ttyUSB0`. Check the port on the
[Hardware page](http://10.1.1.30/gs/hardware) and pick it on the **RC input** card of **Control > RC Wiring**.

<a id="gs-windows--usb-devices-sokil-or-windows"></a>

### USB devices: Sokil or Windows

Only one side can use a device at a time. Sokil needs the radio or the adapter to fly; Windows needs
it for EdgeTX Companion, Betaflight or a simulator.

<a id="gs-windows--for-a-while"></a>

#### For a while

The **Ports** chip in the header of the web UI (choose **Windows**, or **Sokil** to take them back), and the desktop icons **Sokil USB to
Sokil** and **Sokil USB to Windows**, move all three device types at once. **Sokil USB status** says
where each device is now. The choice lasts until the next Windows boot or sign-in by the installing
user: then everything goes back to Sokil. **When there is no RC, check this chip first.**

<a id="gs-windows--for-good"></a>

#### For good

To keep one device type on Windows permanently, for example the CH340 boards you program from
Arduino, take its id out of Sokil's list and its rule out of usbipd. From an administrator
PowerShell:

1. Delete its line from `C:\ProgramData\Sokil\serial_hwids.txt`. The USB monitor re-reads the file
   every loop, so it stops taking that id at once.
2. `usbipd policy list`, and note the GUID of the rule with that hardware id.
3. `usbipd policy remove --guid <GUID>`
4. `usbipd detach --hardware-id <vid:pid>` gives an attached device back to Windows.

Re-running the installer adds the shipped ids back, so repeat this after a reinstall.

<a id="gs-windows--turning-sokil-off-and-on"></a>

### Turning Sokil off and on

Everything here runs in an administrator PowerShell and removes nothing.

**Off, from the next restart.** `Disable-ScheduledTask -TaskName "Sokil WSL"`, then restart Windows.
Nothing of Sokil starts after that, and no USB device is taken.

**Off right away**, without signing out: the same command, then the USB monitor first - it keeps
running and takes the devices back within seconds - and only then the station:

```
Get-CimInstance Win32_Process -Filter "Name = 'powershell.exe'" | Where-Object CommandLine -like '*sokil-serial-monitor*' | ForEach-Object { Stop-Process -Id $_.ProcessId -Force }
wsl --terminate Ubuntu
usbipd detach --all
```

**On again.**

```
Enable-ScheduledTask -TaskName "Sokil WSL"
Start-ScheduledTask -TaskName "Sokil WSL"
```

Mirrored networking stays configured while Sokil is off. It only has an effect while a WSL distro is
running, so with Sokil off and no other distro running it changes nothing.

<a id="gs-windows--uninstalling"></a>

### Uninstalling

Two ways to start the uninstaller:

- From the Windows package: double-click `uninstall.bat`, next to `install.bat`.
- On a station installed with the current installer, from an administrator PowerShell:
  `powershell -ExecutionPolicy Bypass -File C:\ProgramData\Sokil\uninstall_windows.ps1`

It lists what it will do and asks `Remove Sokil from this PC? [y/N]`; an unattended run needs
`-Yes`. Then it:

- stops Sokil and the USB monitor, and gives every USB device back to Windows;
- removes the four scheduled tasks, the desktop and Start-menu icons, the AutoBind policies, the
  firewall rule and the browser policies;
- restores the Hyper-V firewall setting and the networking line of `.wslconfig` - back to what was
  there before when the installer recorded it, otherwise it removes the `networkingMode=mirrored`
  line - and restarts WSL, which stops every running distro, Docker Desktop's included;
- undoes the change the installer made to a Windows ZeroTier client, when that was recorded;
- removes `C:\ProgramData\Sokil`.

**Restart the PC afterwards.**

<a id="gs-windows--what-it-keeps"></a>

#### What it keeps

- **The Ubuntu distro** is deleted (`wsl --unregister`, with everything inside it) only if the Sokil
  installer created it. A distro that existed before Sokil is kept: Sokil's services are stopped and
  disabled inside it, the setting that made root its default user is removed, and the station's SSH
  account is locked.
  On a station installed before the installer kept that record, the uninstaller asks, and the
  default is to keep it. `-RemoveDistro` or `-KeepDistro` decides it up front.
- **usbipd-win** is uninstalled only if the Sokil installer installed it.
- **The Windows features** Virtual Machine Platform and Windows Subsystem for Linux stay on unless
  you pass `-RemoveWindowsFeatures`, because other software uses them - Docker, Android emulators,
  other WSL distros.

<a id="gs-windows--removing-it-by-hand"></a>

#### Removing it by hand

On a PC where the uninstaller is not available, each step below is one command in an administrator
PowerShell, or one action:

1. `Unregister-ScheduledTask -TaskName "Sokil WSL","Sokil Serial to WSL","Sokil Serial to Windows","Sokil USB status" -Confirm:$false`
2. Stop the USB monitor with the command in [Turning Sokil off and on](gs-windows.md#gs-windows--turning-sokil-off-and-on).
3. `usbipd detach --all`
4. `usbipd policy list`, then `usbipd policy remove --guid <GUID>` for each rule with `1a86:7523`,
   `303a:1001` or `1209:4f54`.
5. `wsl --unregister Ubuntu` - **only if that distro exists for Sokil alone**; it deletes everything
   inside it. To keep the distro instead, switch Sokil off inside it, as root:
   `systemctl disable --now sokil sokilweb sokilproxy-502 sokilproxy-503 zerotier-one`.
6. Delete the `networkingMode=mirrored` line from `%USERPROFILE%\.wslconfig`, then `wsl --shutdown`.
7. `Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction NotConfigured`
8. `Remove-NetFirewallRule -Name SokilWslSsh`
9. Under `HKLM:\SOFTWARE\Policies\Google\Chrome` and `HKLM:\SOFTWARE\Policies\Microsoft\Edge`, remove
   the key `OverrideSecurityRestrictionsOnInsecureOrigin` and the values
   `HardwareAccelerationModeEnabled` and `DefaultBrowserSettingEnabled` - unless your organization
   manages those policies.
10. Delete the four desktop icons, the **Sokil Web UI** entry in the Start menu, and
    `C:\ProgramData\Sokil`.
11. If the installer moved or stopped a Windows ZeroTier client: restore
    `C:\ProgramData\ZeroTier\One\local.conf.sokil-bak` as `local.conf`, or run
    `Set-Service ZeroTierOneService -StartupType Automatic; Start-Service ZeroTierOneService`.
12. Optionally `winget uninstall --exact dorssel.usbipd-win`, and
    `Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform,Microsoft-Windows-Subsystem-Linux`.

Then restart the PC.

<a id="gs-windows--networking-and-remote-access"></a>

### Networking and remote access

**Mirrored networking, in operator terms**: Ubuntu gets no network of its own. It uses the PC's
adapters and addresses as they are, so the station is reached at whatever address Windows has, and
it reaches whatever the PC reaches - a camera on the PC's Ethernet port, the internet over its
Wi-Fi. Video reaches the Web OSD on `127.0.0.1`, exactly as on a Linux station.

- **From another device on the network**, a tablet or another computer opens the web UI at the
  PC's own address, `http://<PC>/`. Over plain http on a network address the browser needs the
  secure-origin exception before it decodes video -
  [the video pane says "Video is blocked on this address"](troubleshooting-video.md#troubleshooting-video--the-video-pane-says-video-is-blocked-on-this-address-overlay-and-telemetry-work).
- **SSH**: `ssh -p 2222 <account>@<PC>` with the station's SSH account (support provides the
  credentials), then `sudo -i`. Port 22 is Windows' own SSH server where one is installed, and it
  rejects that account -
  [SSH to a Windows station](remote-access-debugging.md#remote-access-debugging--ssh-to-a-windows-station).
- **The station starts when Windows boots, before anyone signs in.** The **Sokil WSL** task also
  runs when the installing user signs in. Stations installed from older media need the current
  Windows installer run again to get startup before sign-in.
- **It cannot hand out addresses.** _Hand out addresses to devices on this wire_ (parameter `eth_dhcp_server`)
  (**Control > Network > Ethernet**) is kept but never applied on Windows, and Diagnostics says so. Give the cameras
  fixed addresses, or let a router or a Linux ground station on the same switch hand them out.
- **ZeroTier** runs inside Ubuntu, needs UDP 9993 on the PC, and is up only while the station is.
  A ZeroTier client installed on Windows itself wants the same port: move it or stop it, as the
  installer offers -
  [ZeroTier is unreachable on a Windows station](troubleshooting-network.md#troubleshooting-network--zerotier-is-unreachable-on-a-windows-station-that-also-has-zerotier-installed).
- **`wsl --shutdown` stops the whole station**, and every other WSL distro with it. Nothing of Sokil
  comes back until the **Sokil WSL** task runs again: sign out and back in as the installing user, or
  `Start-ScheduledTask -TaskName "Sokil WSL"`.
- **The Terminal and Files pages ship switched off here**, and so do unsigned updates sent from
  another machine: a PC is a personal machine, so Sokil treats it as a pilot's laptop whatever it is
  plugged into. **Device discovery** itself ships off for the same reason - the PC answers the
  cameras pointed at it either way, so the vehicle switcher is unaffected. All four switches are on
  Control > **Network** > **Device discovery**, and the first three can be changed only on this PC,
  in the interface at `http://127.0.0.1/`; they switch off again whenever Sokil restarts.
  [What a laptop keeps switched off](pilot-laptop.md#pilot-laptop--what-a-laptop-keeps-switched-off) has the whole list and what to do
  for a support call.

<a id="gs-windows--when-something-is-wrong"></a>

### When something is wrong

The troubleshooting guide has one block per symptom:

- [The PC's own USB devices or network stopped working after installing Sokil for Windows](troubleshooting-pilot-computer.md#troubleshooting-pilot-computer--the-pc-s-own-usb-devices-or-network-stopped-working-after-installing-sokil-for-windows)
- [The web UI does not open on a Windows station](troubleshooting-pilot-computer.md#troubleshooting-pilot-computer--the-web-ui-does-not-open-on-a-windows-station)
- [The Windows installer fails part way](troubleshooting-pilot-computer.md#troubleshooting-pilot-computer--the-windows-installer-fails-part-way)
- [The station's USB radio disappeared on a Windows station](troubleshooting-network.md#troubleshooting-network--the-station-s-usb-radio-disappeared-on-a-windows-station) - no RC
- [Other stations and cameras cannot reach a Windows station](troubleshooting-network.md#troubleshooting-network--other-stations-and-cameras-cannot-reach-a-windows-station)
- [ZeroTier is unreachable on a Windows station that also has ZeroTier installed](troubleshooting-network.md#troubleshooting-network--zerotier-is-unreachable-on-a-windows-station-that-also-has-zerotier-installed)
- [A Windows station cannot hand out addresses to cameras](troubleshooting-network.md#troubleshooting-network--a-windows-station-cannot-hand-out-addresses-to-cameras)
- ["This browser can't decode H.265"](troubleshooting-video.md#troubleshooting-video--this-browser-can-t-decode-h-265)
- [The desktop OSD opens a white window and crash-loops on a Windows laptop](troubleshooting-pilot-computer.md#troubleshooting-pilot-computer--the-desktop-osd-opens-a-white-window-and-crash-loops-on-a-windows-laptop)

<a id="gs-windows--related-guides"></a>

### Related guides

- [Laptop pilot station](gs-laptop.md#gs-laptop) - the handset adapters, pinning them, and what
  setup writes on a laptop.
- [Supported hardware](supported-hardware.md#supported-hardware) - which laptop, and the Windows requirements.
- [Mac ground station](gs-mac.md#gs-mac) - the same station on an Apple Silicon Mac.
- [Remote access and debugging](remote-access-debugging.md#remote-access-debugging) - SSH and the logs on a Windows
  station.
- [Troubleshooting](troubleshooting.md#troubleshooting) - every symptom with its fix.
