![]() |
WE HAVE MOVED. Please see our NEW Computer Forums |
9-6-2008: Sorry for the inconvenience. We finally upgraded to vBulletin 3 !! See you there, Larry Internet connection sharing behind a routerGo to the Tech-Forums Discussion Home PagePosted by: Law [b]Internet Connection Sharing behind a router.[/b] 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. [b]What you will need:[/b] 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) [b]The setup below has a laptop configured to share internet while connected to the router wirelessly.[/b] [b]What I am using:[/b] 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. [b]What you want to avoid:[/b] Windows Firewall Zone Alarm free version or other version. Norton AV 2005-2006 Any firewall/Security applications turn them off for now. [b]What you need to know about my setup:[/b] 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. [b]How I did it.[/b] 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 [b]On the desktop (client computer) I setup the following IP address:[/b] 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 [b]Now I connect both the PC with the crossover cable and configured the client:[/b] 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). [b]Configuring the host:[/b] 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. [b]Optional setup, adding more computers (clients):[/b] 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. [b]Example: Adding 3 more computer (clients)[/b] 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. [b]Future setup, setting up an Ad Hoc:[/b] 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. [b]Other future setup: Daisy chaining the clients (wirelessly or with wire)[/b] Posted by: Law [b]Internet connection sharing using an Ad Hoc network behind a wireless router.[/b] 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 desktop’s (client computer) wireless network card. This is setting up an Ad Hoc network. [b]What you will need:[/b] 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) [b]What I am using:[/b] 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 [b]What you need to know about my setup:[/b] 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. [b]How I did it:[/b] 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 don’t 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 (it’s 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 [b]Now to configure the client computer:[/b] 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, don’t 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 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 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 what’s causing the problem. [b]Enabling the ICS on the host:[/b] 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 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, don’t 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 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 wireless network card, this mean it’s being shared. You should now have Internet access from the client and file sharing should work. [b]Technical Issues:[/b] Sometime the client will not automatically connect to the host, that’s 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. [b]Optional but recommended:[/b] 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. Posted by: Law [b]Adding PlayStation 2 console. [/b] [b]What you need:[/b] Windows XP SP2 with two network cards PS 2 with network adapter. Crossover cable Home router Broadband Internet [b]Configure your host computer:[/b] 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 it’s 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 [b]Wizard setup:[/b] 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, don’t 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 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 to Control Panel/Network Connection. You should see a hand under one of the network card, this mean it’s being shared. [b]Setting up the PS2:[/b] 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. I’ve heard it has cause to many problems if the user doesn’t 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. [b]Technical resolution:[/b] If you’re having any problem, try switching the First DNS address to the ISP DNS server. [b]Optional setting:[/b] 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. [b]Tips:[/b] 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 Posted by: Law [b]Internet Connection Sharing on Windows 98 Second Edition[/b] [b]What you need to know:[/b] 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. [url]http://www.annoyances.org/exec/show/ics_98[/url] Posted by: Law [b]Setting up port forwarding with ICS[/b] After you setup ICS and everything is working, you’ll 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. [b]Before we proceed you will have to gather the following information:[/b] The application ports and protocols: You can find most popular application ports and protocols at [url]http://www.portforward.com/cports.htm[/url]. [url]www.google.com[/url] 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 [COLOR=red]ipconfig[/COLOR] 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 [b]Control Panel/Network Connections[/b]. 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 [b]Properties[/b]. Select the [b]Advanced tab[/b]; you should see the Internet Connection Sharing section. Click on the [b]Settings…[/b] button. [url]http://members.cox.net/mypeth/Advanced.JPG[/url] 3) Now you should see a list of services, click [b]Add…[/b] [url]http://members.cox.net/mypeth/Settings.jpg[/url] 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 computer’s IP that is hosting this service, and I will put 27666 as the External and Internal port and select TCP. [url]http://members.cox.net/mypeth/doom3tcp.jpg[/url] 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. [url]http://members.cox.net/mypeth/doom3udp.jpg[/url] 7) The newly added services should be automatically checked and now the port should be forwarded and open for the client. [url]http://members.cox.net/mypeth/setting2.jpg[/url] [b]Technical problems and solutions:[/b] When you’re 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 you’re 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. Posted by: Law 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. Posted by: Law 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 Posted by: joshd 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 TF. i am thinking it is an internet explorer problem or something... EDIT EDIT EDIT EDIT: fixed it! the DNS setting were wrong. Posted by: Law LOL :D 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. Posted by: joshd 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. Posted by: Law Great site for ICS tutorial on Windows OS. [url]http://www.annoyances.org/exec/show/ics[/url] Posted by: Shanadoia I have read your advise on setup and you surely have the knowledge to setup a wireless router. I need the complete setup and exactly what to do from a to z on this system. My sister and i are running (her) win xp 2000 (me) winxp pro. We live next door to each other in seperate apts....We want to install a Linksys wireless router to her insight cable dsl modem and using the card antenna on my pc as a network from hers. We are only a wall apart like maybe 20 feet or so...can you tell me or email me a text message which would be even better for all the steps to setting this up from A to Z ....Awaiting your reply...Shanadoia Posted by: Law [QUOTE][i]Originally posted by Shanadoia [/i] [B]I have read your advise on setup and you surely have the knowledge to setup a wireless router. I need the complete setup and exactly what to do from a to z on this system. My sister and i are running (her) win xp 2000 (me) winxp pro. We live next door to each other in seperate apts....We want to install a Linksys wireless router to her insight cable dsl modem and using the card antenna on my pc as a network from hers. We are only a wall apart like maybe 20 feet or so...can you tell me or email me a text message which would be even better for all the steps to setting this up from A to Z ....Awaiting your reply...Shanadoia [/B][/QUOTE] Shanadoia, I think I've never heard of Win XP 2000 before :) , I think you meant to say Windows 2000 Pro? If both computer run Win XP, I have already made a guide on setting up a wireless ad hoc, it's on this thread. However I suggest you don't do it unless it's absolutely what you want because it can be a complicating task and it always end up not working if you don't have the technical level. And the other downside is that your sister computer must always be on for you to use the Internet. I suggest you let her buy a wireless router, and just connect to the wireless router with your wireless card, this isn't any different than going through a wall with a wireless connection to her computer using ICS, instead it just bypass her computer which makes it less of a burden, but it helps simplified things also. The wireless router will allow you to share a single Internet connection also without relying on her computer. You should be able to connect to the wireless router using your wireless card and the router will handle all the traffic to the Internet for both you and your sister's computer. Posted by: Shanadoia well now i am really lost but now everything is setup and everything is running "except" now on my end the receptiant, my network card says my Wireless connection Signal Strength is execelent, but it will not recieve anything it has sent out like 312 packets and 0 recieved...If this makes sence to you... I was wondering am i supposed to add the same modem setup software as she had to to setup her cable modem on my recieving end... Please advise on this...Shanadoia Posted by: Law [QUOTE][i]Originally posted by Shanadoia [/i] [B]well now i am really lost but now everything is setup and everything is running "except" now on my end the receptiant, my network card says my Wireless connection Signal Strength is execelent, but it will not recieve anything it has sent out like 312 packets and 0 recieved...If this makes sence to you... I was wondering am i supposed to add the same modem setup software as she had to to setup her cable modem on my recieving end... Please advise on this...Shanadoia [/B][/QUOTE] No, you shouldn't have to. Let me ask, can your sister access the Internet while connected to the router? If so, than it might just be your wireless connection. If so, you want to make sure your wireless card is compatible with the router's specification (usually 802.11b/g). And if you have any security encryption or security features enable, I suggest disable them temporary until you can establish a connection to the Internet. Then you can add the security back one by one. Posted by: Shanadoia yes she can connect to aol and the internet with the router hooked up as it is right this moment. the only security that i know of is the firewall and it is unchecked Posted by: Law [QUOTE][i]Originally posted by Shanadoia [/i] [B]yes she can connect to aol and the internet with the router hooked up as it is right this moment. the only security that i know of is the firewall and it is unchecked [/B][/QUOTE] Using the Windows wireless management: If you go to Control Panel>Network Connection, you'll see your wireless card there, can you right click on it and select "View available wireless network" and on that list, is your sister's wireless network showing up in there? Another question, this router hasn't been modified yet is it? Just brand new out of box, not configured yet? Because if it's not configured than the router wouldn't have any security enable so the connection should be open for everyone and you should just be able to see it there and just click connect to it. Posted by: Shanadoia Thanks for all the info firend: i now have the wirless router runnin strong...there were 2 problems, 1) was tht it had ben used and the default password had been changed...2) I bought an Encore card and antenna which the cd i had was not putting the driver in so it had to be dld...after this i called linksys and a cercive tec. steped me through the whole opr. after i got the new password from the friend that furnished the wirless system...Thanks again and you was hitting the nail on the head so to speak...Sincerly thankful...Shanadoia Please Visit the Online Configurator, Email Hosting, Internet Marketing , Computer Schools , Software for Real Estate , AAOutlook , Search Engine Site |