Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I'm writing an app that creates a wifi software access point using the Win7 Wireless Hosted Network API from C# I found a project on codeplex (VirtualRouter) that shows how to do that from C# so no problems but now I need to force a client to go to an specific web page once it conects to the router for the first time. Does any one know how to do that?

Thanks a lot in advance,

Galvez
Posted
Updated 4-Apr-12 4:52am
v4
Comments
Code-o-mat 4-Apr-12 9:31am    
Explain a bit more what you mean by "force a client to go to a specific web page". A client connects to your WiFi network, then what happens, what would the client experience?
jcgalveza 4-Apr-12 10:53am    
Clarification:

Thanks a lot Code-o-mat for your quick response, well when a client connect to my WiFi network and opens the browser I want the browser to show an specific page or show a message on the client screen or a browser popup window.
What I want is the same effect as changing the client's browser homepage, I've seen that on computers belonging to a domain where a domain administrator may change the browser's homepage at will. I've also read about something similar done in Hotels WiFi's.
I just found this here[^]:

"The wifi works in a similar way to a Hotels wifi hotspot, when you log on to the wifi connection and refresh your browser it immediately redirects the user to the advertising content page just like a hotel redirects you to the payment page upon initiation. On an iPhone it works even better by actually pushing a login box to the handset upon connection that displays the adverts."

Tha's exactly what I want but done using a SoftwareAP instead of a custom hardware.

Thanks a lot,

Galvez
Code-o-mat 4-Apr-12 11:03am    
In this case, as Jochen also pointed out, i think your best bet is a proxy server. Since all HTTP traffic would go trough your hotspot, you can detect HTTP requests coming from clients and redirect them to wherever you want them to go.
jcgalveza 4-Apr-12 11:20am    
I'm searching the web and codeplex for solutions, the whole thing here is that I'm new to all of this stuff of proxies and wireless networks so maybe there is a simple solution but I don't see it. I'm also looking on the Internet Connection Sharing API because I belive that service implements a proxy but I don't know if I can use it for my purpose.
Do you know if there is a forum on microsoft where I can make that question?

Thanks once again.
Code-o-mat 4-Apr-12 14:20pm    
Don't know about such a forum, sorry, which of course does not mean it doesn't exist.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900