Sunday, February 17, 2008

SHARING INTERNET CONNECTION TROUGH WIFI



Connecting the ICS Host Computer to the Internet

Connect an Ethernet cable that leads to the Internet to the Ethernet adapter on the ICS host computer. In many cases, the Internet connection will provide automatic IP addressing. To utilize this facility of the Internet connection, the Ethernet connection in the Network Connections folder in Windows XP must be configured for automatic addressing. To configure a computer running Windows XP for automatic addressing, do the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the network connection that corresponds to the Ethernet network adapter attached to the Internet, and then click Properties.
  3. On the General tab, double-click Internet Protocol (TCP/IP) in the This connection uses the following items list.
  4. On the General tab, click Obtain an IP address automatically and Obtain DNS server address automatically. An example is shown in the following figure.
  5. Click OK to save the changes to your connection's configuration.
If the Internet connection does not provide automatic IP addressing, you must manually configure an IP address configuration. To obtain an IP address configuration, see the network administrator of the network to which you are connecting. To manually configure a computer running Windows XP for an IP address configuration, do the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the network connection that corresponds to the Ethernet network adapter attached to the Internet, and then click Properties.
  3. On the General tab, double-click Internet Protocol (TCP/IP) in the This connection uses the following items list.
  4. On the General tab, click Use the following IP address and type the IP address, subnet mask, and default gateway as instructed. Click Use the following DNS server addresses and type the IP address of a preferred and alternate Domain Name System (DNS) server as instructed.
  5. Click OK to save the changes to your connection's configuration.
Next, you must enable the Windows Firewall feature of Windows XP with Service Pack 2 (SP2), the Internet Connection Firewall (ICF) feature of Windows XP with Service Pack 1 (SP1) or Windows XP with no service packs installed, or a third-party firewall to help protect the ICS host computer from malicious Internet users.

To enable Windows Firewall on the ICS host computer, do the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Windows Firewall.
  2. Click On, and then click OK.
To enable ICF on the Internet connection of the ICS host computer, do the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the Ethernet network connection that corresponds to the Ethernet network adapter attached to the Internet, and then click Properties.
  3. On the Advanced tab, select the Protect my computer by limiting or preventing access to this computer from the Internet check box.
  4. Click OK to save changes to your connection.
After the ICS host computer is connected to the Internet, verify that you have Internet connectivity by using a Web browser such as Internet Explorer to view a few Web sites. To ensure that you are not viewing locally stored copies of Web page contents, refresh each Web page that you view.
When you are confident that you are accessing the Internet from the ICS host computer, proceed to the next step.


Enabling Internet Sharing on the Internet Connection of the ICS Host Computer

To enable Internet sharing on the Internet connection of the ICS host computer, do the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the Ethernet network connection that is used to access the Internet, and then click Properties.
  3. On the Advanced tab, select the Allow other network users to connect through this computer's Internet connection check box and clear the Allow other network users to control or disable this shared Internet connection check box.
  4. Click OK to save changes to your connection.
  5. You might be prompted with a Local Network message box that explains how your computer's configuration is being changed. Click Yes to enable Internet sharing.

Creating an Ad Hoc Wireless Network on the ICS Host Computer

To create an ad hoc wireless network to share Internet access with the other WLAN computers on a computer running Windows XP with SP2 or Windows XP with SP1 and the WPA Wireless Security Update in Windows XP, do the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the wireless network connection, and then click Properties.
  3. Click the Wireless Networks tab.
  4. In the wireless network adapter properties dialog box, click Add under Preferred networks.
  5. On the Association tab, type the name of your ad hoc wireless network in Network name (SSID). For example, you could name your wireless network AdHocInternet.
  6. Select the This is a computer-to-computer (ad hoc) network check box and clear the The key is provided for me automatically check box.
  7. In Network Authentication, select Open.
  8. In Data encryption, select WEP.
  9. In Network key, type the WEP key. The WEP key should be a random sequence of hexadecimal digits or numbers, letters, and punctuation.
  10. In Confirm network key, retype the WEP key.
  11. Click OK to save changes to the wireless network.
  12. Click OK to save changes to the wireless network adapter.
To create an ad hoc wireless network to share Internet access with the other WLAN computers on a computer running Windows XP with SP1, do the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the wireless network connection, and then click Properties.
  3. Click the Wireless Networks tab.
  4. In the wireless network adapter properties dialog box, click Add under Preferred networks.
  5. On the Association tab of the Wireless Network Properties dialog box, type the name of your ad hoc wireless network in Network name (SSID). For example, you could name your wireless network AdHocInternet.
  6. Select the Data encryption (WEP enabled) and This is a computer-to-computer (ad hoc) network check boxes and clear the The key is provided for me automatically check box.
  7. In Network key, type the WEP key. The WEP key should be a random sequence of hexadecimal digits or numbers, letters, and punctuation.
  8. Retype the WEP key in Confirm network key.
  9. Click OK to save changes to the wireless network.
  10. Click OK to save changes to the wireless network adapter.

To create an ad hoc wireless network to share Internet access with the other WLAN computers on a computer running Windows XP with no service packs installed, do the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the wireless network connection, and then click Properties.
  3. Click the Wireless Networks tab.
  4. In the wireless network adapter properties dialog box, click Add under Preferred networks.
  5. In the Wireless Network Properties dialog box, type the name of your ad hoc wireless network in Network name (SSID). For example, you could name your wireless network AdHocInternet.
  6. Select the Data encryption (WEP enabled) and This is a computer-to-computer (ad hoc) network check boxes and clear the The key is provided for me automatically check box.
  7. In Key format, select a key format.
  8. In Key length, select a key size.
  9. In Network key, type the WEP key. The WEP key should be a random sequence of
  10. Click OK to save changes to the wireless network.
  11. Click OK to save changes to the wireless network adapter.
These instructions configure an encryption key for wireless communications on the ad hoc wireless network. You must tell the other users who want to access the Internet the WEP key. You can create an ad hoc wireless network without requiring encryption and an encryption key, but it is not recommended.


Connecting to the New Ad Hoc Wireless Network from the Other Laptop Computers

To connect each other laptop computer to the newly created ad hoc mode wireless network, do the following:
  1. Once the new ad hoc wireless network is created, Windows XP on other laptop computers should detect it and prompt you with a One or more wireless networks are available or Wireless networks detected message in the notification area of your taskbar.
  2. Click the notification message.
    If you are not notified, right-click the wireless network adapter in Network Connections and click View Available Wireless Networks.
    You should see the Wireless Network Connection dialog box (for Windows XP with SP2), a dialog box with the name of the wireless connection (for Windows XP with SP1), or the Connect to Wireless Network dialog box (for Windows XP with no service packs installed).
  3. For Windows XP with SP2, click the name of the new ad hoc wireless network in the list, and then click Connect. When prompted by the Wireless Network Connection dialog box, the WEP key in Network key and Confirm network key, and then click Connect.
    For Windows XP with SP1, click the name of the new ad hoc wireless network in Available networks, type the WEP key in Network key and Confirm network key, and then click Connect.
    For Windows XP with no service packs installed, click the name of the new ad hoc wireless network in Available networks, type the WEP key in Network key, and then click Connect.
Now that the laptop computer is connected to the ad hoc wireless network, you must configure it for either Windows Firewall or ICF and automatic addressing by doing the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the network connection that corresponds to the wireless network adapter, and then click Properties.
  3. For computers running Windows XP with SP2, click the Advanced tab, and then click Settings. From the Windows Firewall dialog box, click On, and then click OK.
    For computers running Windows XP with SP1 or Windows XP with no service packs installed, click the Advanced tab, and then select the Protect my computer and network by limiting or preventing access to this computer from the Internet check box.
  4. Click the General tab, double-click Internet Protocol (TCP/IP) in the This connection uses the following items list.
  5. On the General tab, click Obtain an IP address automatically and Obtain DNS server address automatically.
  6. Click OK to save the changes to the configuration of Internet Protocol (TCP/IP).
  7. Click OK to save the changes to your connection's configuration.
    The laptop computer should receive an IP address configuration from the ICS host computer and have Internet connectivity. Test Internet connectivity by using a Web browser to view Web pages.


Restoring the Configuration of the ICS Host Computer

After the ad hoc Internet sharing is no longer needed, you can restore the configuration of the ICS host computer running Windows XP by doing the following:
  1. From the Windows XP desktop, click Start, click Control Panel, click Network and Internet Connections, and then click Network Connections.
  2. Right-click the Ethernet network connection that is used to access the Internet, and then click Properties.
  3. On the Advanced tab, clear the Allow other network users to connect through this computer's Internet connection check box. If you are shutting down the computer to later connect it to a secure private network, such as an organization intranet and for which a firewall is not required, do one of the following:
  1. For computers running Windows XP with SP2, click Settings. From the Windows Firewall dialog box, click Off, and then click OK.
  2. For computers running Windows XP with SP1 or Windows XP with no service packs installed, clear the Protect my computer by limiting or preventing access to this computer from the Internet check box.
  1. Click OK to save changes to your connection.
 

The IP address configuration of the wireless network connection is restored back to its original settings.

No comments: