win-connect
Background
This program is built to resolved the issue that Windows cannot detect the Internet even if it does have an Internet connection.
How to use
-
Go to release to download the binary or build it yourself.
-
Press the Windows logo key + R, type
shell:startup
, then select OK. You will find your startup folder. -
Paste the binary to the startup folder or you can create a short cut there which points to the binary.
-
Press the Windows logo key + R, type
regedit
to open the registry. -
Backup it first by
file
->export
. -
Find the key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet
by typing this in the address bar.Change the value of
ActiveWebProbeHost
to127.0.0.1:29801
Change the value of
ActiveWebProbePath
toconnecttest.txt
Change the value of
ActiveWebProbeContent
toConnect Test
-
Restart your machine and all is well.
Build
With ninja
ninja
Without ninja
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o win-connect.exe -ldflags -H=windowsgui main.go
Customize port
Create a short cut in the startup folder with the location
"C:\path\to\win-connect.exe" -p [port]