https://github.com/sippeangelo/wlanauto
Disable WLAN when LAN is available.
https://github.com/sippeangelo/wlanauto
Last synced: 8 months ago
JSON representation
Disable WLAN when LAN is available.
- Host: GitHub
- URL: https://github.com/sippeangelo/wlanauto
- Owner: sippeangelo
- Created: 2011-05-26T07:29:06.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-05-31T09:43:32.000Z (about 15 years ago)
- Last Synced: 2023-03-11T02:19:18.374Z (over 3 years ago)
- Language: C++
- Homepage:
- Size: 426 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Disclaimer: This piece of ugly code is very specific to the system. Don't expect it to work out of
the box. It can be GREATLY optimized and SHOULD if it ever would be used in any production environment
it is not designed for.
I made this as a free alternative to the product offered at http://www.wirelessautoswitch.com/.
The idea is to provide a service that automatically disable any Wireless connection when the
computer is connected to a LAN connection and vice versa.
Since I did not find any good way to detect disabled network adapters and identify them as wireless,
the service scans for a network adapter named "Wireless Network Connection" on the control panel
for network connections. If you have multiple Wireless or LAN connections this will be chosen randomly.
Wlanauto4 is a Windows Service. Install it by passing the -i switch to the program. It will not start
automatically after installation, though the service is configured to start automatically on boot.
The service will check if your LAN adapter is connected to any network every 3 seconds. If it isn't
connected the service will enable the Wireless adapter, and the other way around.