Automatically enables the proxy when connected to the school network (ac-strasbourg.fr) and disables it when off the network. Runs entirely in the background with no GUI or visible console.
- Detects only active network interfaces.
- Automatically enables/disables the proxy based on school network connectivity.
- Works on Windows (10/11) without a graphical interface.
- Can run at user logon in the background.
2025-11-14.10-56-28.mp4
- Download the latest
AutoProxy.exeandinstall-autoproxy.batfrom the project’s Releases page. - In the same folder as
AutoProxy.exe, runinstall-autoproxy.bat(right‑click → “Run as administrator”). - The script will:
- Create
C:\Program Files\AutoProxy\. - Move
AutoProxy.exeinto that folder. - Create a scheduled task named “AutoProxy” (at user logon).
- Create
- Verification: open “Task Scheduler” → “Task Scheduler Library” and find “AutoProxy”.
- Uninstall (manual):
- Delete the scheduled task “AutoProxy”.
- Remove the folder
C:\Program Files\AutoProxy\if no longer needed.
- Clone the repository:
git clone https://github.com/votre-utilisateur/AutoProxy.git
- Open the project in Visual Studio 2022.
- Select the
Releaseconfiguration. - Build the project (
Ctrl + Shift + B). - Find the generated executable at:
<ProjectFolder>\bin\Release\net7.0\AutoProxy.exe - Move the
.exeto a secure folder and add it to startup as above.
- Proxy address (in source code):
private const string ProxyAddress = "10.129.254.254:3128";
- School network DNS suffix:
private const string SchoolSuffix = "ac-strasbourg.fr";
- Integrate as a Windows service for a more seamless startup.
MIT License — free to use, modify, and distribute.