I have been trying to implement a sort of captive portal for users connected to my windows 10 hotspot, I am just trying to make it so when users connect to the hotspot they either get a pop up of the site I'm hosting locally or when they go to any domain in their browser it redirects them to the local site.
I have been trying to follow an already existing post on windows hot spot captive portals but I cannot get it working because I just don't know enough about how it works.
1. Start windows mobile hotspot.
2. Go to Network adapters => Select hotspot adapter => Change IPv4 settings => set 127.0.0.1 as DNS server.
3. Start dnschef with --fakeip = 192.168.137.1
4. Start an http server on 192.168.137.1 and give 302 redirect response to all requests.
I was following these instructions and I was able to get to step 3. At step 3 when the device tries to connect to a domain it has never connected to before it is properly redirected to my site but when I connect to a site like google.com it just doesn't load and wont redirect. It also wont give a captive portal popup when you first connect to the network.
I cannot get past step 3 because I do not understand how to Start an http server on 192.168.137.1 and give 302 redirect response to all requests. Some help on how I would be able to do this would be greatly appreciated, thank you.