This is a native C++ project for Windows (built with Visual Studio) that allows you to start or stop a Wi-Fi hotspot using a simple command-line interface.
- Start a hotspot with a custom SSID and password
- Stop the hotspot
- Native C++ using Windows Runtime (WinRT) APIs
β οΈ This project is for Windows only, and must be built with Visual Studio (any recent version that supports C++/WinRT).
- Open the
.slnfile in Visual Studio. - Set the build configuration to
x64andRelease(orDebug). - Build the project (
Ctrl + Shift + Bor via the Build menu).
The output executable (e.g. HotspotManager.exe) will be in x64\Release\ or x64\Debug\.
Open Command Prompt or PowerShell and go to the folder with HotspotManager.exe.
HotspotManager.exe -start <SSID> <PASSWORD>
<SSID>: Name of the Wi-Fi network<PASSWORD>: Password (must be 8β63 characters)
Example:
program.exe -start MyNetwork SecurePass123
program.exe -stop
- Your Wi-Fi adapter must support tethering.
- It uses your current internet connection for sharing.
This project is provided as-is for educational and personal use.