Repository navigation
Install Windows
Not recommended. Running the relay
on a Windows PC is untested. Windows as a client is Expected; see Clients.
What the labels mean
The relay needs to send and receive multicast DNS on your LAN, and Windows' container options make that hard:
- Docker Desktop runs containers in a VM. Its host networking works at layer 4 inside that VM (Docker docs), so the relay's Bonjour announcements don't reach your LAN. Fine for trying the relay, useless for iPhones.
- WSL 2 uses NAT by default. Its mirrored networking mode (Windows 11 22H2 and later) adds multicast support and LAN access (Microsoft docs), but nobody has tested the relay that way, and Docker Desktop runs in its own VM regardless.
If the always-on machine is a Windows PC, run a Linux VM with its network adapter bridged to the LAN (Hyper-V: an External virtual switch; VirtualBox or VMware: Bridged adapter). The VM gets its own LAN address, and you follow Install with Docker Compose on Linux inside it. This is the same setup as a VM on Proxmox, and it is Expected to work.
Allow the VM through any Windows firewall rules that apply to bridged adapters, and make sure the PC doesn't sleep.
Untested. If you want to try it:
-
In
%UserProfile%\.wslconfig, set:[wsl2] networkingMode=mirrored
then run
wsl --shutdownand start your distribution again. -
Allow inbound connections to WSL through the Hyper-V firewall (from an elevated PowerShell, as in the Microsoft docs):
Set-NetFirewallHyperVVMSetting -Name '{40E0AC32-46A5-438A-A0B2-2B479E8F2E90}' -DefaultInboundAction Allow
-
Inside the distribution, install Docker Engine (not Docker Desktop), then follow Install with Docker Compose on Linux.
-
Windows itself may already answer mDNS on UDP 5353. Leave
AVAHI_HOSTNAMEempty, as on other hosts: the relay then shares the PC's name. If the logs loop onHost name conflict(-3,-4, …), see Troubleshooting. Check from a Mac withdns-sd -B _ipp._tcp,_universal.
Please report what happens, working or not, on the Compatibility List.
To try the relay or check a printer profile without a LAN announcement, run it with AVAHI_MODE=off and a
published port, as shown for Docker Desktop on macOS. From
Windows you can then add it as a printer by address: Settings › Bluetooth & devices › Printers & scanners › Add
device › Add manually › Select a shared printer by name, http://127.0.0.1:8631/printers/legacy-printer (that
example publishes port 8631 with CUPS_PORT=8631; use your published port if you changed it). Details on
Clients.
legacy-printer-airprint-relay · MIT License · Report an issue · Not affiliated with Apple, Xerox or Synology. AirPrint is a trademark of Apple Inc.