A lightweight Windows 11 system tray utility that automatically switches your LG TV to the correct HDMI input when your PC starts. Built for LG webOS TVs (2018+) using the SSAP WebSocket protocol.
- Auto HDMI switch on boot -- switches your LG TV to the configured HDMI input every time Windows starts
- Wake-on-LAN -- optionally wakes your LG TV before switching (sends WOL magic packet)
- One-time pairing -- pair with your TV once, credentials persist across reboots
- MAC auto-discovery -- automatically detects your TV's MAC address during pairing
- System tray -- runs silently in the background with a tray icon for quick access
- Retry logic -- configurable retry attempts with delay for reliable switching even when the TV is slow to boot
- Auto-start with Windows -- registers itself in the Windows startup registry (toggle on/off from settings)
- Single .exe -- self-contained binary, no .NET runtime or installer needed
- Windows 11 (x64)
- LG webOS TV (2018 or newer) on the same local network
- TV setting: LG Connect Apps enabled (Settings > Network)
- Download
HDMISwitch.exefrom Releases - Place it anywhere (e.g.
C:\Users\<you>\Apps\HDMISwitch.exe) - Run it -- the Settings window opens on first launch
- Enter your LG TV's IP address
- Click Pair with TV -- accept the pairing prompt shown on your TV screen
- The MAC address will auto-fill (used for Wake-on-LAN)
- Select your HDMI port (1-4)
- Check Wake TV (WOL) if you want the app to power on your TV before switching
- Check Start with Windows to launch automatically on boot
- Click Save
That's it. On every boot, the app will silently wake your TV (if enabled) and switch to your HDMI input.
For Wake-on-LAN to work, enable these in your LG TV settings:
- Settings > General > Mobile TV On > Turn On Via WiFi = ON
- Settings > General > TV Management > Quick Start+ = OFF
- Ethernet connection recommended (WiFi WOL is unreliable)
Once running, the app sits in the system tray. Right-click the icon for:
- Settings -- open the settings window
- Switch Now -- manually trigger an HDMI switch
- Exit -- close the app
Double-click the tray icon to open Settings.
The app communicates with your LG TV using the SSAP (Simple Service Access Protocol) over a secure WebSocket connection (wss://TV_IP:3001). On startup:
- Sends a WOL magic packet to wake the TV (if enabled)
- Waits for the TV to boot (~5 seconds)
- Connects via WebSocket and authenticates with the stored client key
- Sends
ssap://tv/switchInputwith the configured HDMI port - Retries up to 5 times (configurable) if the TV isn't ready
- .NET 9 SDK
- Windows 11
dotnet publish -c Release -r win-x64 --self-contained -p:PublishSingleFile=true -p:PublishTrimmed=trueThe output binary will be at:
bin\Release\net9.0-windows10.0.22621.0\win-x64\publish\HDMISwitch.exe
- C# / .NET 9 with Windows Forms
- WebSocket (System.Net.WebSockets) for LG SSAP protocol
- UDP for Wake-on-LAN magic packets
- Windows Registry for auto-start
- Published as a self-contained, trimmed, single-file .exe (~34 MB)
Settings are stored at %APPDATA%\HDMISwitch\config.json:
{
"tvIp": "192.168.1.x",
"tvMac": "AA:BB:CC:DD:EE:FF",
"hdmiPort": 1,
"clientKey": "...",
"wolEnabled": true,
"autoStart": true,
"retryCount": 5,
"retryDelayMs": 3000
}MIT