Computers |
|
| | #1 (permalink) |
| Wizard Techie Join Date: Aug 2005
Posts: 4,171
| 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 dont want to run a cable through their house, I dont know and I dont 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 its 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, dont 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 its 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 Im 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, dont 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 its 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 its 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) |
| | |
| | #2 (permalink) |
| Wizard Techie Join Date: Aug 2005
Posts: 4,171
| Internet connection sharing using an Ad Hoc network behind a wireless router. In this setup I will have my laptop (host computer) with two wireless network card, one connect to the wireless router and has Internet already and the other wireless network card connected to my desktops (client computer) wireless network card. This is setting up an Ad Hoc network. What you will need: Host computer with Windows XP SP2 with 2 wireless network cards Client computer with Windows XP SP2 with 1 wireless network card The cards must be the same specification 802.11a or 802.11b/g (just make sure they match). Wireless router Broadband Internet (cable, DSL) What I am using: Laptop (host computer) with Windows XP SP2 with two 802.11b/g wireless network cards Desktop (client computer) with Windows XP SP2 with one 802.11b/g wireless network card 802.11b/g wireless router Cable Internet What you need to know about my setup: My laptop (host computer) already has Internet from the router using one of the wireless network cards, now I have to get the second wireless card to communicate with the desktop (client) before I setup ICS. How I did it: On my laptop (host computer) I went into Control Panel/Network Connection. There I see two wireless adaptor, one is already being use to connect to the router, the second one that is unused is the one I am concern about; I will refer to this as the 2nd wireless card. Right click on the 2nd wireless card and select properties, now click on the Wireless Network tab. Make sure Use Windows to configure my wireless network settings is check. Click the Advanced button at the lower right of this tab. Select the radio button Computer-to-computer (ad hoc) networks only. Make sure the box labeled Automatic connect to non-preferred networks is NOT checked. Click the Close button (once) to return to the Wireless Network tab. Under Preferred Network, remove any preexisting network that the card may have detected, now click on add. I will now have to put in a network name (SSID); I will be using Sharing (case sensitive) as my setup SSID. I will leave my Network Authentication Open and Data Encryption Disable as of now because I dont want to be concern about any problem, I just want to get these computer connected first before I enable any security. Click Ok to get back to the wireless network tab, you should now see your newly added network, there should be a red x on it. Now we will go to the General tab and double click on the TCP/IP and give this wireless adaptor the following IP information (see below).Click Ok to exit and save then Windows should detect that wireless network (its ok, Windows is just detecting itself). 2nd wireless adaptor IP: 192.168.0.1 Subnet mask: 255.255.255.0 Default gateway: None DNS: None Now to configure the client computer: On my desktop (client computer) I locate the Wireless Networks icon in the system tray. Right-click it and select View Available Wireless Networks. I can now see the wireless network Sharing that I setup from the host computer. I select it and click Change advanced setting, then to the Wireless Networks tab I click on the Advanced button on the bottom right select the same ad hoc configuration as the host computer. I now have to go to the General tab and give this wireless adaptor an IP address also (see below) Client wireless adaptor IP: 192.168.0.2 Subnet mask: 255.255.255.0 Default gateway: 192.168.0.1 DNS: 192.168.0.1 Click Ok to save the IP configuration, and then OK to get back to the View Available Wireless Networks. Select the host SSID and check the box that says Allow me to connect to the selected wireless network, even though it is not secure. Click on the Connect button. A confirmation prompt will pop up to tell you that you have established a peer-to-peer connection. We are still on the desktop (client computer). Go to Control Panel/Network Connection. Select 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, dont worry about it and just click next, when it ask to put the workgroup select the default (MSHOME) or choose your own 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 its 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 ping 192.168.0.1 to see if I can get a reply, if good I continue on if not I have to figure out whats causing the problem. Enabling the ICS on the host: Now Im 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 1st wireless card because this is the card that is connected to the router for Internet. When it ask to give this computer a description and name, dont worry about it and just click next, when it ask to put the workgroup select the default (MSHOME) or your own 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 its 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 wireless network card, this mean its being shared. You should now have Internet access from the client and file sharing should work. Technical Issues: Sometime the client will not automatically connect to the host, thats because of interferences or other network in the area, just make sure you go to View Available Wireless Networks. To see if the ad hoc network is there and click connect if you have to. Also you want to make sure both are working in the same channel. This is where you will have to check device manager/your wireless adaptor properties. Optional but recommended: Make sure you enable some kind of network authentication and data encryption, you should know how to do it by now, just select the wireless adaptor, go to properties, and wireless networks tab and select the preferred ad hoc network and click properties. You need to have matching setting for the host and the client. |
| | |
| | #3 (permalink) |
| Wizard Techie Join Date: Aug 2005
Posts: 4,171
| Adding PlayStation 2 console. What you need: Windows XP SP2 with two network cards PS 2 with network adapter. Crossover cable Home router Broadband Internet Configure your host computer: Make sure your host computer has two network cards. Make sure it already has Internet access on one of the network card. On the host computer you need to set up the IP address first, leave the setting alone on the network card that is connected to the router because its already fine and has internet connection. Go to the 2nd network card and set the following IP address and subnet manually on it. Click Ok to save and exit. IP: 192.168.0.1 Subnet mask: 255.255.255.0 Default Gateway: None DNS: None Wizard setup: On the host computer go to Control Panel/Network Connection, select Set up a home or small office network click next and select 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, select the card that is connected to the router because this is the card that is connected to the Internet. When it ask to give this computer a description and name, dont worry about it and just click next, when it ask to put the workgroup select the default (MSHOME) or your own 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 its 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 to Control Panel/Network Connection. You should see a hand under one of the network card, this mean its being shared. Setting up the PS2: Connect the PS2 to the 2nd network card on the host computer with a cross-over cable. Delete any old network configuration from the memory card. Ive heard it has cause to many problems if the user doesnt do so. Put any name for your ISP setting if it ask: Select Yes if it asks if you subscribe to an ISP: Select High Speed Connection: Select Manual setting: Select No if it asks if your ISP require user ID and password: MANUAL SETTINGS (Static IP Addressing) You will have to assign the PS2 with the following IP address: IP: 192.168.0.2 (or up any of the following up to 192.168.0.254) Subnet Mask: 255.255.255.0 Default Gateway (router): 192.168.0.1 First DNS: 192.168.0.1 Secondary DNS: ISP DNS server Save the configuration, it will be added to the memory card. Technical resolution: If youre having any problem, try switching the First DNS address to the ISP DNS server. Optional setting: You can have a switch or hub connected to the host computer using straight-through cables. This setup allows you to add more clients. Just connect the PS2 to the switch or hub with a straight through cable. Tips: How to tell if the cables are cross-over or straight-through: Hold the end of the cable side by side. If the color coordination matches: they are straight-through If the green and orange switch places: they are cross-over |
| | |
| | #4 (permalink) |
| Wizard Techie Join Date: Aug 2005
Posts: 4,171
| Internet Connection Sharing on Windows 98 Second Edition What you need to know: Internet Connection Sharing made its debut in Windows 98 SE; any earlier Windows will not support ICS. That includes Windows 95 and earlier version of Windows 98. Instead of doing my own guide, I have to link this and give credit to the author (or whoever came up with this guide), because I do not have Windows 98 SE installed on any of my machine to be able to come up with my own setup guide. Therefore if you want to setup your Win98 SE machine to share your current Internet, than the below link will help you get started. Always give credit where it's due! Peace. http://www.annoyances.org/exec/show/ics_98 |
| | |
| | #5 (permalink) |
| Wizard Techie Join Date: Aug 2005
Posts: 4,171
| Setting up port forwarding with ICS After you setup ICS and everything is working, youll probably want to host certain application on the client computer, like games and p2p applications. Well this guide illustrates the procedures taken to port forward on the host computer running Windows XP. Before we proceed you will have to gather the following information: The application ports and protocols: You can find most popular application ports and protocols at http://www.portforward.com/cports.htm. www.google.com is also vital if the information is not listed at portforward.com The client computer IP address: If you had follow my guide and setup each client IP manually you should have no problem figuring that out. Go to the client computer, run the command prompt or MS-DOS and type ipconfig Now that you have the two vital information then you can proceed. In this guide I will use Doom 3 as my example. I have obtain my 2 vital information Ports and Protocol: 27666 TCP and 27666 UDP Client IP address: 192.168.0.5 1) On the host computer running Windows XP, go to Control Panel/Network Connections. 2) You should see at least two network cards, right click on the network card that is connected to the router or modem (the one that gives Internet access to this host computer) and select Properties. Select the Advanced tab; you should see the Internet Connection Sharing section. Click on the Settings button. http://members.cox.net/mypeth/Advanced.JPG 3) Now you should see a list of services, click Add http://members.cox.net/mypeth/Settings.jpg 4) The service setting appears. 5) Now I enter my information for Doom3, first one I will put Doom3 TCP as my description, I will put 192.168.0.5 as the client computers IP that is hosting this service, and I will put 27666 as the External and Internal port and select TCP. http://members.cox.net/mypeth/doom3tcp.jpg 6) I will repeat step 3 through 4 for the second port and protocol, but this time the description will be doom3 UDP, same IP, same port (in my case) but now I select UDP. http://members.cox.net/mypeth/doom3udp.jpg 7) The newly added services should be automatically checked and now the port should be forwarded and open for the client. http://members.cox.net/mypeth/setting2.jpg Technical problems and solutions: When youre using ICS and you have an application with many ports and protocols, you will have to repeat steps 3 through 6 for every port and protocol that the application need. There is no specifying a range; this makes ICS a hassle to work with. If you follow my other guide and youre behind a router, you will probably need to configure your router to port forward the ports to the host computer, which in turn should take that request and port forward to the client. |
| | |
| | #6 (permalink) |
| Wizard Techie Join Date: Aug 2005
Posts: 4,171
| It's useful when you don't want to have to wire a long cable again just to reach the other side where your router might be. Instead you can use the existing computer already wired as your gateway into the Internet. It saves from buying a long cable or when you don't want to buy a switch just to add one more computer to your network, also ICS with the wireless ad hoc is really useful just for this but it's unreliable and confusing for a beginner to setup. |
| | |
| | #7 (permalink) |
| Wizard Techie Join Date: Aug 2005
Posts: 4,171
| A little problem I've been hearing about, for those of you who have D-Links router and any router that assigns a LAN address in the 192.168.0.0 network please use a different network other than this for your ICS connection for example: ISP===Router===192.168.0.0 network===computer1===192.168.50.0 ICS====computer2. You'll need to use something other than 192.168.0.1 in my guide, like maybe 192.168.50.1 or 192.168.100.1 just so it doesn't conflict with the existing router. Linksys are known to use 192.168.1.0 network D-Link are known to use 192.168.0.0 network Belking are known to use 192.168.2.0 network Netgear are known to use 192.168.1.0 network |
| | |
| | #8 (permalink) |
| Master Techie Join Date: Jun 2005
Posts: 2,135
| OK, hey Law. I am sorry I didnt get around to doing this earlier. I am now trying to set up an XP machine and a win98 (non SE) machine. wireless router-----------XP Host------(cat5 crossed)-----98 machine i have set it up so that both networks work, but for the 98 machine to be able to ping the host, ICS has to be disabled on the wireless connection. if it is on, the ping does not work. when it can ping, I cannot get any internet on the 98 machine. (i have configured it to get internet through LAN) any ideas? EDIT: i have got it to ping when ICS is on on the wireless, i didnt realise it changed the IP of the LAN adaptor. It still cannot access the internet on the 98 machine, but what it CAN do is access the wireless router, at 192.168.2.1. (the XP-98 network is on 192.168.0.x) EDIT EDIT: the 98 machine can also access shared files on the XP machine. EDIT EDIT EDIT: the 98 machine can ping internet server IPs, like google and tech forums. i am thinking it is an internet explorer problem or something... EDIT EDIT EDIT EDIT: fixed it! the DNS setting were wrong.
__________________ E4300 @ 3.2GHz, Tuniq Tower 120 2GB GeIL Ultra 2900Pro - 850/999 - 3DM06 - 12,086 Gigabyte DS3 rev3.3 Audigy 2 ZS + HD595 |
| | |
| | #9 (permalink) |
| Wizard Techie Join Date: Aug 2005
Posts: 4,171
| LOL Yea, you need to make sure DNS is configured on the client! Sometime if you set the client to obtain an IP address automatically, it won't pick up the setting. Probably a bug, but I don't understand it so I suggest static assignment are better on ICS. Is the DNS on the 98 pointing to the XP (192.168.0.1)? or another DNS server like the router or your ISP server? All three should work, if your router supports DNS forwarding, the request just goes to the ISP DNS server. |
| | |
| | #10 (permalink) |
| Master Techie Join Date: Jun 2005
Posts: 2,135
| yea, it is set to the XP machine. as when "oh no it wont ping when ICS is on" and I didnt realise that ICS changed the IP of the LAN adapter. (i was using 192.168.1.x as it is closer to the rest of the network) so eventually i worked out that the gateway needed changing for it to be ping-able again, but forgot that I had also entered a DNS that now also needed changing. once that was changed to 192.168.0.1 then it all worked smoothly. i am very pleased with it actually, i did not expect full file sharing and stuff.
__________________ E4300 @ 3.2GHz, Tuniq Tower 120 2GB GeIL Ultra 2900Pro - 850/999 - 3DM06 - 12,086 Gigabyte DS3 rev3.3 Audigy 2 ZS + HD595 |
| | |