[Windows] VPN (TUN) mode fails in 5.5.5: fork/exec HiddifyCli.exe "The requested operation requires elevation"
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- dart
- Domain
- desktop, networking
Research direction
Start by tracing how Windows VPN (TUN) mode launches HiddifyCli.exe and compare that path with the working proxy mode. The issue names no source files or tests, so first locate the Windows process launch and elevation handling; confirm the fix by connecting in VPN mode from a normally started app and checking that the elevation request or helper allows the TUN core to start.
Written by the indexing model from the issue text.
Description
Description
On Windows, Hiddify 5.5.5 cannot connect in VPN (TUN) mode at all. Proxy (system proxy) mode works fine with the same profile; only VPN mode fails.
When trying to connect in VPN mode, the app stays on "Connecting..." and then shows an "Unexpected failure" dialog with:
Bad state: fork/exec C:\Program Files\Hiddify\HiddifyCli.exe: The requested operation requires elevation.
After dismissing the dialog the main screen shows "Connection failed, tap to retry".
It looks like the app tries to launch HiddifyCli.exe (which needs administrator rights for TUN) directly from a non-elevated process, instead of requesting elevation (UAC) or going through an elevated helper/service, so Windows rejects the process creation (ERROR_ELEVATION_REQUIRED, code 740).
Steps to reproduce
- Install Hiddify 5.5.5 on Windows (default path
C:\Program Files\Hiddify). - Start the app normally (not "Run as administrator").
- Import any working subscription/profile.
- Set the service mode to VPN.
- Tap connect.
Expected behavior
The app should request elevation (UAC prompt) or use an elevated helper, start the TUN core, and connect, as it does in proxy mode.
Actual behavior
Connection never starts; "Unexpected failure: Bad state: fork/exec C:\Program Files\Hiddify\HiddifyCli.exe: The requested operation requires elevation." is shown, then "Connection failed".
Environment
- App version: 5.5.5
- Platform: Windows (desktop)
- Mode: VPN (TUN) fails, proxy works
Notes
- Possible workaround to verify: running Hiddify as administrator.
- Related (closed): #2402 (similar error 740 on relaunch after update).
- Dominant language
- Dart
- Stars
- 33.9k
- Forks
- 3.2k
- Avg merge
- 9h 34m
- Merged PRs (30d)
- 22
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hiddify/hiddify-app
-
bug from-telegram platform:windows
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
hiddify/hiddify-app#2592 ·
Maintainers usually reply within 1 day
-
from-telegram logs platform:android
Difficulty 3/5 1-2 days Newbie friendliness 52/100
hiddify/hiddify-app#2593 ·
Maintainers usually reply within 1 day
-
area:connection bug from-telegram platform:android
Difficulty 4/5 3-5 days Newbie friendliness 18/100
hiddify/hiddify-app#2591 ·
Maintainers usually reply within 1 day
-
[Logs] Extra security mode with WARP fails to connect on v5.9.8 (works with Psiphon and on v5.5.5)Openarea:connection from-telegram logs platform:android
Difficulty 4/5 3-5 days Newbie friendliness 28/100
hiddify/hiddify-app#2590 ·
Maintainers usually reply within 1 day
-
[Logs] AmneziaWG profile fails to connect on Android (server on 3x-ui), works in AmneziaVPN clientOpenarea:connection from-telegram logs platform:android
Difficulty 4/5 3-5 days Newbie friendliness 25/100
hiddify/hiddify-app#2589 ·
Maintainers usually reply within 1 day
All issues in hiddify/hiddify-app
Similar issues
-
Bug Dart
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-dart#4167 · 2 comments ·
Maintainers usually reply within 2 days
-
bug enhancement needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cogwheel0/conduit#1122 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bannzai/shoppinglist#779 ·
Maintainers usually reply within 1 day
-
Android bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PostHog/posthog-flutter#731 · 1 comment ·
Maintainers usually reply within 1 day