Chapter 30: Connecting Your LAN to the Internet
Installing ICS on the ICS Server One computer on your LAN, the ICS server, runs the ICS program. This computer must connect to the Internet with a dial-up account, ISDN line, DSL line, cable modem, or other Internet connection--make sure that you have this Internet connection working.
The Wizard can't set up your computer as an ICS server if it's not connected to the Internet or to a LAN. It also doesn't work if another computer is already acting as the Internet gateway for the LAN, running a DHCP server, or is using the IP address 192.168.0.1.
Configuring the ICS Server Using the Network Setup Wizard The easiest way to install and configure ICS is by running the Network Setup Wizard. The Wizard can create a floppy disk with a version of the Wizard that you can use to configure the other Windows Me, 9x, 2000, and NT computers on the LAN.
On the computer that has the Internet connection, run the Network Setup Wizard by choosing Start | All Programs | Accessories | Communications | Network Setup Wizard. Or, choose Start | Control Panel, click Network And Internet Connections, click Network Connections, and click Set Up A Home Or Small Office Network in the Task pane. As the Wizard asks you questions, make these choices:
- Select A Connection Method Choose This Computer Connections Directly To The Internet. You must already have created a dial-up, DLS, ISDN, or cable connection.
- Select Your Internet Connection The Wizard displays a list of the connections (both Internet and LAN connections) on your computer. Choose the connection to the Internet, as shown here:
- Give This Computer A Description And Name Type a description of your computer in the Computer Description box and a unique name for your computer in the Computer Name box. The boxes may already be filled in if you entered this information when you installed Windows or when you set up your LAN.
- Name Your Network In the Workgroup Name box, type the name of your workgroup (for workgroup-based networks). The workgroup name must match the workgroup name of the other computers on the LAN. When you click Next, the Wizard confirms your settings, like this (the Internet Connection Firewall is turned on by default):
When you click Next, the Network Setup Wizard installs and enables Internet Connection Sharing and the Internet Connection Firewall.
- You're Almost Done If you haven't already set up your LAN, you need to configure each other computer on the LAN to work with the settings you've just installed (that is, your ICS server computer is the DHCP server that hands out IP addresses, as well as being the Internet gateway). If the other computers on the LAN run Windows XP, you can run the Network Setup Wizard as described at the beginning of this section. If the LAN includes computers running older versions of Windows, you can create a Network Setup Disk to run on those computers.
Configuring the ICS Server Manually If your LAN and Internet connections both work, there's a quicker way to turn on Internet Connection Sharing. On the computer that has the Internet connection, follow these steps:
- Open the Network Connections window (choose Start | Control Panel | Network And Internet Connections | Network Connections).
- Click the Internet connection (not the LAN connection).
- Click Change Settings Of This Connection in the Network Tasks listed in the Task pane. You see the Properties dialog box for the Internet connection.
- Click the Advanced tab. You see the Internet Connection Firewall and Internet Connection Sharing settings, shown in Figure 30-2. The settings are as follows:
Figure 30-2: Checking your Internet Connection Sharing settings
- Protect My Computer And Network By Limiting Or Preventing Access To This Computer From The Network Select this check box to turn on the Internet Connection Firewall, which we highly recommend for all Internet connections.
- Allow Other Network Users To Connect Through This Computer's Internet Connection Select this check box to turn on ICS, or clear the check box to turn ICS off.
- Establish A Dial-Up Connection Whenever A Computer On My Network Attempts To Access The Internet Select this check box to enable dial-on-demand.
- Allow Other Network Users To Control Or Disable The Shared Internet Connection Select this check box to allow other people on the LAN to disconnect the Internet connection (hang up) or reconnect (if dial-on-demand is turned off).
- Click OK to put the changes into effect.
Testing the ICS Server To test whether your computer is working as the ICS server, try connecting to the Internet from the ICS server--you should connect as if ICS weren't installed. Browsing, e-mail, and other Internet services should be unaffected. Right-click the Local Area Network connection in the Network Connections window and choose Status to see whether the LAN is working and confirm that your IP address is 192.168.0.1.
ICS Server Configuration Details Make sure that the dial-up connection (or other Internet connection) works. To test it, connect to the Internet and browse the Web or send and receive e-mail.
Make sure that the ICS server is set to connect to the Internet whenever it receives a request to connect. To set your Internet options to dial the Internet on demand, choose Start | Control Panel | Network And Internet Connections and click Internet Options to display the Internet Properties dialog box. Click the Connections tab and choose Always Dial My Default Connection so that Windows can connect to the Internet on demand. Click the Settings button and make sure that your user name and password are entered so that the ICS server can connect to the Internet without waiting for you to type this information.
If you ran the Network Setup Wizard, take a look at the Nsw.log file, which is stored in your C:\Windows folder (or whatever folder Windows is installed in). Navigate to it in an Explorer window and double-click it to open it in Notepad. It lists the actions that the Wizard took when installing and configuring your LAN and ICS, including searching your system for networking components and deciding which to use.