Git Product home page Git Product logo

examplewifi's Introduction

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();

examplewifi's People

Contributors

ronjunevaldoz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.