Go to file
Sean McArdle 0375becd53 Updated README.md 2016-03-29 19:21:47 -07:00
WifiSitter Cleanup usings. 2016-03-29 17:59:02 -07:00
.gitattributes Initial commit 2016-03-23 14:01:23 -07:00
.gitignore Initial commit 2016-03-23 14:01:23 -07:00
README.md Updated README.md 2016-03-29 19:21:47 -07:00
WifiSitter.sln Added x86 build. 2016-03-24 19:04:20 -07:00

README.md

WiFi Sitter

It's a babysitter for your WiFi NIC.

This is born out of the need to have the wifi adapter disabled when Ethernet is active, seems like this should be a solved problem but there are no good free tools for this. Some PC vendors produce their own which provide this behavior but they also try to be the one stop shop for all your WiFi management needs. Windows does a fine job managing which hotspots you're connected to, this just fills in one gap.

While running the application watches for IP changed and availability changed events and enables/disables WiFi adapters accordingly. When Ethernet is active, WiFi adapters are disabled if they've made a connection, if WiFi is active but not connected it is left alone, when ethernet gets unplugged or the network availability goes away all WiFi adapters are enabled. That is all it does, there is no configuration, it ignores Bluetooth adapters and MS WiFi Direct Virtual adapters. It compiles to a single .Net 4.0 executable and only makes use of .Net and a few commands present in all standard Windows installs (not tested on Windows embedded).

Roadmap:

  • Install as Windows service
  • Log to Windows Event Log
  • Systray Icon w/status indicator
  • Configurable NIC whitelist/blacklist
  • Prepackaged builds

Notes

Wifi-Sitter can be installed from the command line. First place the exe where you'd like it to stay (if you move it, the service will break), then run like so from an admin shell:

WifiSitter.exe /install

The service is configured to start automatically but will not be started after if you're automating a deployment, you'll need to run net start wifisitter or use your service starting command of choice.

Similarly, uninstall like so:

WifiSitter.exe /uninstall

It can be run as a console application for debugging purposes by running:

WifiSitter.exe /console

Many thanks to Matt Davis for this answer and Samuael Neff for this. They helped a lot with converting to a service.