Law
Fully Optimized
- Messages
- 4,200
- Location
- the data closet
Internet Connection Sharing behind a router.
Some of you may ask why the heck do you need ICS when you already have a router. Probably because they ran out of ports on the router and just wanted to add one more computer without having to buy a switch, instead they can use their preexisting computer as a gateway. Or maybe they donÂ’t want to run a cable through their house, I donÂ’t know and I donÂ’t care but a lot of people seem to want to do this kind of thing anyway.
What you will need:
Windows XP SP2 for the Host computer
Host computer with two network card
Switch or Hub (optional)
Network card for each computer connected.
Crossover cable
Straight Through cable (if using the switch/hub)
A basic home router or wireless router.
Broadband Internet (cable, DSL)
The setup below has a laptop configured to share internet while connected to the router wirelessly.
What I am using:
1) Laptop (the host computer) with Windows XP Pro SP2/ 1 wireless network card and 1 wired network card installed.
2) Desktop (the client computer) with Windows XP Pro SP2/ 1 wired network card installed
3) Crossover cable
4) Wireless Router
5) Cable Internet.
What you want to avoid:
Windows Firewall
Zone Alarm free version or other version.
Norton AV 2005-2006
Any firewall/Security applications turn them off for now.
What you need to know about my setup:
I have the laptop as the host computer; the laptop is already connected to my wireless router through wireless connection and has Internet connection already. I have a wired network card on the laptop that will connect to my desktop PC (the client) with a crossover cable. The desktop PC will connect to the laptop with the crossover cable and access the internet from the laptop wireless connection which will go through the router for internet.
How I did it.
On the laptop (host computer) setting up the IP address first, I left those setting alone on the wireless network card because itÂ’s already fine and has internet connection. I went into the wired network card and set the following IP address and subnet manually on it
Wired network card:
IP: 192.168.0.1
Subnet mask: 255.255.255.0
Default Gateway: None
DNS: None
On the desktop (client computer) I setup the following IP address:
Wired network card:
IP: 192.168.0.2
Subnet mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS: 192.168.0.1
Now I connect both the PC with the crossover cable and configured the client:
Now I go on the desktop (client computer) network connection, high light the wired network card and on the left I selected “Set up a home or small office network”, click next and I selected “This computer connects to the Internet through another computer on my network or through a residential gateway” because this is the client computer that will connect to the host computer. When it ask to give this computer a description and name, don’t worry about it and just click next, when it ask to put the workgroup select the default (MSHOME) and click next, when it ask to turn on or off file sharing make sure you turn on file sharing and click next, click next until it’s done. Select “Just finish the Wizard” and click finish. Now go and turn off the Windows firewall again because you just enable it. You will have to restart the computer.
When back on, open up command prompt and I ping 192.168.0.1 to see if I can get a reply from the host. If good then I continue to go and configured the laptop (host computer).
Configuring the host:
Now I’m on the laptop (host computer) network connection, I select “Set up a home or small office network” click next and I selected “This computer connects directly to the Internet. The other computers on my network connect to the Internet through this computer.” Because this is the host computer that will share the Internet. Click next; when it lists the network cards, I selected the wireless card because this is the card that is “connected” to the Internet. When it ask to give this computer a description and name, don’t worry about it and just click next, when it ask to put the workgroup select the default (MSHOME) and click next, when it ask to turn on or off file sharing make sure you turn on file sharing and click next, click next until it’s done. Select “Just finish the Wizard” and click finish. Now go and turn off the Windows firewall again because you just enable it. You will have to restart the computer.
When back on, go into the network connection. You should see a hand under one of the network card, this mean itÂ’s being shared. You should now have Internet access from the client and file sharing should work.
Optional setup, adding more computers (clients):
You will need a switch or hub with three or more ports and straight through cables for every computer that will connect to the switch or hub. Basically connect the host and clients to the switch or hub then configure the clients network card.
Example: Adding 3 more computer (clients)
Second Client IP setup:
IP: 192.168.0.3
Subnet mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS: 192.168.0.1
Third Client IP setup:
IP: 192.168.0.4
Subnet mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS: 192.168.0.1
Fourth Client IP setup:
IP: 192.168.0.5
Subnet mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS: 192.168.0.1
And so on. Then you would run the wizard as the one above “Now I connect both the PC with the crossover cable and configured the client” Just like that.
Future setup, setting up an Ad Hoc:
Later when I have the time, I will try to connect the client to the host wirelessly and have the host connect to the router wirelessly for internet.
Setup will include the host having two wireless adaptors and the client having one wireless adaptor.
Other future setup: Daisy chaining the clients (wirelessly or with wire)
Some of you may ask why the heck do you need ICS when you already have a router. Probably because they ran out of ports on the router and just wanted to add one more computer without having to buy a switch, instead they can use their preexisting computer as a gateway. Or maybe they donÂ’t want to run a cable through their house, I donÂ’t know and I donÂ’t care but a lot of people seem to want to do this kind of thing anyway.
What you will need:
Windows XP SP2 for the Host computer
Host computer with two network card
Switch or Hub (optional)
Network card for each computer connected.
Crossover cable
Straight Through cable (if using the switch/hub)
A basic home router or wireless router.
Broadband Internet (cable, DSL)
The setup below has a laptop configured to share internet while connected to the router wirelessly.
What I am using:
1) Laptop (the host computer) with Windows XP Pro SP2/ 1 wireless network card and 1 wired network card installed.
2) Desktop (the client computer) with Windows XP Pro SP2/ 1 wired network card installed
3) Crossover cable
4) Wireless Router
5) Cable Internet.
What you want to avoid:
Windows Firewall
Zone Alarm free version or other version.
Norton AV 2005-2006
Any firewall/Security applications turn them off for now.
What you need to know about my setup:
I have the laptop as the host computer; the laptop is already connected to my wireless router through wireless connection and has Internet connection already. I have a wired network card on the laptop that will connect to my desktop PC (the client) with a crossover cable. The desktop PC will connect to the laptop with the crossover cable and access the internet from the laptop wireless connection which will go through the router for internet.
How I did it.
On the laptop (host computer) setting up the IP address first, I left those setting alone on the wireless network card because itÂ’s already fine and has internet connection. I went into the wired network card and set the following IP address and subnet manually on it
Wired network card:
IP: 192.168.0.1
Subnet mask: 255.255.255.0
Default Gateway: None
DNS: None
On the desktop (client computer) I setup the following IP address:
Wired network card:
IP: 192.168.0.2
Subnet mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS: 192.168.0.1
Now I connect both the PC with the crossover cable and configured the client:
Now I go on the desktop (client computer) network connection, high light the wired network card and on the left I selected “Set up a home or small office network”, click next and I selected “This computer connects to the Internet through another computer on my network or through a residential gateway” because this is the client computer that will connect to the host computer. When it ask to give this computer a description and name, don’t worry about it and just click next, when it ask to put the workgroup select the default (MSHOME) and click next, when it ask to turn on or off file sharing make sure you turn on file sharing and click next, click next until it’s done. Select “Just finish the Wizard” and click finish. Now go and turn off the Windows firewall again because you just enable it. You will have to restart the computer.
When back on, open up command prompt and I ping 192.168.0.1 to see if I can get a reply from the host. If good then I continue to go and configured the laptop (host computer).
Configuring the host:
Now I’m on the laptop (host computer) network connection, I select “Set up a home or small office network” click next and I selected “This computer connects directly to the Internet. The other computers on my network connect to the Internet through this computer.” Because this is the host computer that will share the Internet. Click next; when it lists the network cards, I selected the wireless card because this is the card that is “connected” to the Internet. When it ask to give this computer a description and name, don’t worry about it and just click next, when it ask to put the workgroup select the default (MSHOME) and click next, when it ask to turn on or off file sharing make sure you turn on file sharing and click next, click next until it’s done. Select “Just finish the Wizard” and click finish. Now go and turn off the Windows firewall again because you just enable it. You will have to restart the computer.
When back on, go into the network connection. You should see a hand under one of the network card, this mean itÂ’s being shared. You should now have Internet access from the client and file sharing should work.
Optional setup, adding more computers (clients):
You will need a switch or hub with three or more ports and straight through cables for every computer that will connect to the switch or hub. Basically connect the host and clients to the switch or hub then configure the clients network card.
Example: Adding 3 more computer (clients)
Second Client IP setup:
IP: 192.168.0.3
Subnet mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS: 192.168.0.1
Third Client IP setup:
IP: 192.168.0.4
Subnet mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS: 192.168.0.1
Fourth Client IP setup:
IP: 192.168.0.5
Subnet mask: 255.255.255.0
Default Gateway: 192.168.0.1
DNS: 192.168.0.1
And so on. Then you would run the wizard as the one above “Now I connect both the PC with the crossover cable and configured the client” Just like that.
Future setup, setting up an Ad Hoc:
Later when I have the time, I will try to connect the client to the host wirelessly and have the host connect to the router wirelessly for internet.
Setup will include the host having two wireless adaptors and the client having one wireless adaptor.
Other future setup: Daisy chaining the clients (wirelessly or with wire)