Jump to content
Not connected, Your IP: 216.73.216.102
major4579

When computer shutsdown Eddie's netlock is still active

Recommended Posts

Windows 10 Pro computer.

I start the VPN with:
"Eddie-UI.exe --path=home --batch --netlock --connect --netlock.allowed_ips=192.168.1.10"

My computer is set to turn off in the early hours. When it does the netlock action is still active, the next day when I start my computer I have to start Eddie and click on "Deactivate Network Lock" and then I will have internet access.

Is there a simple batch file command I can run before the computer shutsdown to Deactivate the Network Lock and cleanly exit Eddie?

Sorry for the newbie questions.
Thanks,
Marc

Share this post


Link to post

Hello!

When Windows shuts down, it closes Eddie before Eddie can disconnect and remove its Network Lock rules. With Fast Startup enabled (the Windows 10 default), Shut down does not fully reset the system, so the leftover rules are still active when you power on the computer the next day. When Eddie exits normally, it disconnects and removes the Network Lock by itself, so the solution is to let Eddie exit before Windows shuts down.

1. Add --gui.exit_confirm=False to your launch command, so that Eddie does not ask for a confirmation when it is closed:

Eddie-UI.exe --path=home --batch --netlock --connect --netlock.allowed_ips=192.168.1.10 --gui.exit_confirm=False

2. Replace your scheduled shutdown with a scheduled task (Task Scheduler) that runs this batch file:
@echo off
taskkill /IM Eddie-UI.exe
set /a n=0
:wait
timeout /t 5 /nobreak >nul
tasklist /FI "IMAGENAME eq Eddie-UI.exe" | find /I "Eddie-UI.exe" >nul || goto off
set /a n+=1
if %n% lss 12 goto wait
:off
shutdown /s /t 0

taskkill without /F asks Eddie to close as if you had chosen Exit: Eddie disconnects, removes the Network Lock and exits. The batch file waits up to one minute for Eddie to exit, then shuts the computer down. In the task properties, run it under your own account with "Run only when user is logged on" and "Run with highest privileges", so that taskkill can reach the Eddie window.

Please let us know whether the Network Lock is gone the next morning.

Kind regards

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...