Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Finally, I am able to setup a basic home network without router. One host laptop running windows 7 is connected to usb data card and other client laptop running XP is able to access internet.

After trying connectify,virtual router etc and ending up with some error, I finally tried adhoc setup on windows 7 native setup, created a network called mynetwork and shared the internet connection. Both machines are on same workgroup, in case it was needed.

Then on XP, I connected to this wireless mynetwork and that's it. When I tried to browse a site, I was able to!!

But, now this got me thinking, how the client machine browser knows to use internet conenction from host machine. I don't recall having done any manual setup on firefox on client machine to tell it to use myconnection to access internet, then how does it know it? What are the various steps involved?

If I try to break down the steps, when a browser receives a request, it checks for all the currently active network connections. In this client case, only mynetwork wireless network is active, so browser forwards the request to this network using some protocol (what it is called?) and the host machine on receiving this request recognizes that it is an http internet request and uses its local internet connection (because it is setup to share internet) to service the request and forwards the output to the client machine. Is my understanding correct? What all different protocols come into picture here?


share|improve this question
ok, thanks for reminding. I went back and marked answers -- most of them were pretty useful but I hadn't marked them. – p2pnode Jul 11 '11 at 8:28
Thank you for marking. I know I will be more willing to spend the time to answer your questions, and will be more willing to jump on them. – KCotreau Jul 11 '11 at 11:14
up vote 1 down vote accepted

Short answer: Internet connection sharing - ICS starts a DHCP server, wich will supply all connected computers with the details how to connect to the Internet (IP address, Gateway, DNS Server).

when a browser receives a request, it checks for all the currently active network connections.

Meep, wrong!. Assuming default settings, it fist uses WPAD to look for a proxy server, which will fail with ICS. Then it just asks the confgured DNS server(s) for the A record of the host name in the URL. This will give it the IP address for the web server, which it will connect to using the default route. Both the DNS server address(es) and the default route are set up by DHCP, wich will also set the IP address of the Client PC itself.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .