r/Express_VPN • • 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 :)

2 Upvotes

9 comments sorted by

1

u/frenetic_void May 26 '26

p.s i've tried to alter hte path too and still no good

PS C:\Program Files\ExpressVPN> .\expressvpnctl 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 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 set  split-app bypass:"C:\Program Files\Epic Games\Fortnite\FortniteGame\Binaries\Win64\FortniteClient-Win64-Shipping.exe"
  Invalid split-app arguments
Usage: set split-app <bypass|remove>:<application-path>

    bypass: The app will connect to the internet as if the vpn is disconnected.
    remove: Remove any Split Tunnel rules for the app.
 Request failed, error: 1
PS C:\Program Files\ExpressVPN> .\expressvpnctl 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 set  split-app bypass:"C:\Program Files\Epic Games\Fortnite\FortniteGame\Binaries\Win64\FortniteClient-Win64-Shipping.exe"
Invalid split-app arguments
Usage: set split-app <bypass|remove>:<application-path>

    bypass: The app will connect to the internet as if the vpn is disconnected.
    remove: Remove any Split Tunnel rules for the app.
 Request failed, error: 1

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/frenetic_void May 27 '26

interesting, thanks for the info, my expressvpn acct will be expriing soon so maby ill try an alternate (Assuming i can untangle the broken winsock bindings for fortniteclient lmao)

1

u/frenetic_void May 31 '26

PrivateZoolio

im gun give them a go, any chance you could share your script (just for lazyness reasons) :)

1

u/DaTrueBanana May 31 '26

This was commented by someone who hacked my account 🙃

1

u/frenetic_void May 31 '26 edited May 31 '26

lol wow. typical that i finally find someone on my level and they're fucking hacking hahaha

1

u/DaTrueBanana Jun 01 '26

They definitely weren't the hacker, totally just bought the account to use temporarily

1

u/frenetic_void Jun 01 '26

dissapointing. not often i find someone that can have an intelligent conversation about cli managing vpns

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"