|
Answer» Hey,
Im locally hosting a website on my laptop, pretty much a chat room page. When users connect I want them to go directly to that my website when trying to browse
Kind of like a gateway wireless page but on an adhoc network
Purpose is for school, my n card covers quite a lot of the school grounds and would be awesome to have some sort of chat room system going (:
Any help appreciated
Thank you Is your machine currently the gateway for internet connections? If so, you just need to muck with the DNS a bit to make all DNS point to your site, and then reset DNS correctly afterwards
But if there is a different gateway machine, you're out of luck, you can't 'force people' to go to your site without EXPLOITING securityah okay, I've setup a xxamp server to host it,
But im still confused with this dns tweaking part, I am the gateway and everything is hosting on this one pc.
What sort of tweaking would I need to do? Im a little confused
Regards
MacuiareWell, Admittedly I've never played around with it myself, and the concept is likely easier then the execution.
when the gateway machine initially leases an IP Address to the client and sends a DNS server, that DNS Server must be initially configured to return the same IP Address to that client regardless of what DNS lookup is preformed.
So if the user initially connects open's their web browser and goes to www.google.ca your DNS server must send your IP Address of your apache box back.
You apache needs to be configured to return the same web page regardless of what domain name header is sent to apache.
Then your apache page needs a link/button, that when clicked, resets the DNS to proper lookup functionality for the client.
You could probably do this with a wildcard in your DNS entry that is added/removed as NEEDED and I would imagine there is software out there that already does this.
It would take some time playing around with, and it the end would probably be CHEAPER just to by a router that already does this for youyea, I figured it would require such D:
Thankyou for the help and information, I'm going to REVIVE one of my sme VIRTUAL pc's and see if that will shed some light on the idea, back to researching.
Thanks again
Macuiare
|