Ercument Eskar Ercument Eskar - 1 year ago 211
C# Question

Captive Portal for Windows

I need a develop captive portal for windows.

What i did?

  1. I share my ethernet connection via wireless adapter with

netsh wlan set hostednetwork mode=allow ssid=wifix key=pass1234


  1. Detect connecting users (mac/ip pairing) with help of sample.

  2. Block or allow requests which i want with


DHCP Server Ok

DNS Server Ok

But i can't found how measure and limit users usage quota or set limit.
What is subject should i research?

(I need windows base captive portal and i need some personal changes. So i don't want to use ready to use captive portals)

Answer Source

My solution was capturing packets with SharpPCap (using WinPCap libraries)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download