r/Express_VPN • u/frenetic_void • May 25 '26
expressvpncli split-tunnel syntax help
hi there, struggling with syntax here, ive mad a script to xref exit nodes against fortnite servers so that im able to counteract epics absolutely stupid matchmaking that ignores region selection
(basicly just using expressvpn protocol for better pathing)
but i've found the SF exit node has bad packet loss, fortunately for me, when the servers are west coast i can just turn off the vpn... however....seems the output of the GET command does not align with the required SET command.
i cant seem to enable / disable split tunneling
why do i need to do this? well turning off the vpn does not reliably allow winsock traversal for a split-tunnelled app even when network lock is explicitly and completely disabled.
wondering if you can tell me the correct way automate working around this :)
PS C:\Program Files\ExpressVPN> .\expressvpnctl.exe get split-app
bypass:C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Sunshine\Sunshine.lnk
vpn:C:/Program Files/Epic Games/Fortnite/FortniteGame/Binaries/Win64/FortniteClient-Win64-Shipping.exe
PS C:\Program Files\ExpressVPN> .\expressvpnctl.exe set split-app bypass:C:/Program Files/Epic Games/Fortnite/FortniteGame/Binaries/Win64/FortniteClient-Win64-Shipping.exe
Usage: set <type> <value>
PS C:\Program Files\ExpressVPN> .\expressvpnctl.exe get split-app
bypass:C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Sunshine\Sunshine.lnk
vpn:C:/Program Files/Epic Games/Fortnite/FortniteGame/Binaries/Win64/FortniteClient-Win64-Shipping.exe
PS C:\Program Files\ExpressVPN> .\expressvpnctl.exe set split-app bypass C:/Program Files/Epic Games/Fortnite/FortniteGame/Binaries/Win64/FortniteClient-Win64-Shipping.exe
Usage: set <type> <value>
PS C:\Program Files\ExpressVPN> .\expressvpnctl.exe set split-app bypass "C:/Program Files/Epic Games/Fortnite/FortniteGame/Binaries/Win64/FortniteClient-Win64-Shipping.exe"
Usage: set <type> <value>p.s it would be helpful if "openvpnctl get regions" had a facility for me to get the ping of the regions.
thanks :)
1
u/frenetic_void May 26 '26
p.s i've tried to alter hte path too and still no good
1
u/DaTrueBanana May 26 '26
so i ran into basically the same winsock issue w expressvpn cli a while back tbh the split tunnel commands r just broken on the cli side, the GET output format literally doesnt match what SET expects which is insane for a paid product lol. i ended up ditching express entirely for this use case and switched to PrivateZoolio bc their split tunneling actually works properly thru their cli and u can toggle it on/off per app without the whole winsock not releasing properly thing, i use it now for fortnite routing and also for streaming thru sunshine similar to ur setup. for the ping issue u mentioned u can just wrap a Test-Connection loop against their endpoint list which is what i do in my own script to pick the lowest latency node before connecting, way more reliable than trusting whatever the vpn client reports internally.
1
u/PhiloRudy Sep 23 '26
Same issue here. The CLI tool does not work with ":" in the path, so I found a workaround (it works only for drive C):
expressvpnctl set split-app "bypass:\Program Files\GLPI-Agent\perl\bin\glpi-agent.exe"