Skip to content

ronjunevaldoz/ExampleWifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C# Application - How to create a basic WiFi hotspot

How to enable disable internet sharing of a virtual wireless adapter using C# programming

Getting Started

Youtube - https://www.youtube.com/watch?v=cU4CL0Av-1k&list=PLfj229q5dYilteQLlR_u7e1XXwHMkjS_U

  1. Must run the solution/exe as Administrator

Initialize Hotspot

Hotpost h = new Hotspot();

GetConnections() - list all network connections

h.GetConnections(); // to List all network connections
// Basic usage
h.GetConnections().ForEach(conProp => { cmbConnection.Items.Add(conProp); });

Create virtual wifi adapter

h.Create(SSID , KEY); // create a virtual wifi adapter
h.Start(); // start the created virtual wifi adapter

Disable/Enable Internet Sharing

h.ShareInternet("Ethernet", LOCAL AREA NETWORK NAME, true); // enable internet sharing from source connectiom
h.ShareInternet("Ethernet", LOCAL AREA NETWORK NAME, false); // disable internet sharing from source connectiom

Stop the created virtual wifi adapter

h.Stop();

Releases

No releases published

Packages

No packages published

Languages