Microsoft KB Archive/306126

= How to configure Internet Connection Sharing in Windows XP =

Article ID: 306126

Article Last Modified on 8/2/2006

-

APPLIES TO


 * Microsoft Windows XP Professional
 * Microsoft Windows XP Home Edition

-



This article was previously published under Q306126



IN THIS TASK

 * INTRODUCTION
 * How to use Internet Connection Sharing
 * On the host computer
 * On the client computer
 * Troubleshooting
 * REFERENCES



INTRODUCTION
This article describes how to set up and use the Internet Connection Sharing feature in Microsoft Windows XP. With Internet Connection Sharing, you can use networked computers to share a single connection to the Internet.

Back to the top

How to use Internet Connection Sharing
To use Internet Connection Sharing to share your Internet connection, the host computer must have one network adapter that is configured to connect to the internal network, and one network adapter or modem that is configured to connect to the Internet.

Back to the top

On the host computer
On the host computer, follow these steps to share the Internet connection:  Log on to the host computer as Administrator or as Owner. Click Start, and then click Control Panel. Click Network and Internet Connections. Click Network Connections. Right-click the connection that you use to connect to the Internet. For example, if you connect to the Internet by using a modem, right-click the connection that you want under Dial-up. Click Properties. Click the Advanced tab.</li> Under Internet Connection Sharing, select the Allow other network users to connect through this computer's Internet connection check box.</li> If you are sharing a dial-up Internet connection, select the Establish a dial-up connection whenever a computer on my network attempts to access the Internet check box if you want to permit your computer to automatically connect to the Internet.</li> Click OK. You receive the following message:

When Internet Connection Sharing is enabled, your LAN adapter will be set to use IP

address 192.168.0.1. Your computer may lose connectivity with other computers on

your network. If these other computers have static IP addresses, it is a good idea to set them

to obtain their IP addresses automatically. Are you sure you want to enable Internet

Connection Sharing?

</li> Click Yes.</li></ol>

The connection to the Internet is shared to other computers on the local area network (LAN). The network adapter that is connected to the LAN is configured with a static IP address of 192.168.0.1 and a subnet mask of 255.255.255.0

To view a video about how to configure the host computer for Internet Connection Sharing, click the Play button on the following Windows Media Player viewer:

Note To view this video, you must use Windows Media Player 7.0 or later.

For additional information about how to obtain Windows Media Player version 7.1, click the following article number to view the article in the Microsoft Knowledge Base:

299321 Description and availability of Windows Media Player 7.1

Back to the top

On the client computer
To connect to the Internet by using the shared connection, you must confirm the LAN adapter IP configuration, and then configure the client computer. To confirm the LAN adapter IP configuration, follow these steps: <ol> Log on to the client computer as Administrator or as Owner.</li> Click Start, and then click Control Panel.</li> Click Network and Internet Connections.</li> Click Network Connections.</li> Right-click Local Area Connection, and then click Properties.</li> Click the General tab, click Internet Protocol (TCP/IP) in the This connection uses the following items list, and then click Properties.</li>  In the Internet Protocol (TCP/IP) Properties dialog box, click Obtain an IP address automatically (if it is not already selected), and then click OK.

Note You can also assign a unique static IP address in the range of 192.168.0.2 to 192.168.0.254. For example, you can assign the following static IP address, subnet mask, and default gateway: <pre class="fixed_text">  IP Address      192.168.0.2 Subnet mask    255.255.255.0 Default gateway 192.168.0.1 </li> In the Local Area Connection Properties dialog box, click OK.</li> Quit Control Panel.</li></ol>

To view a video about how to confirm the LAN adapter IP configuration, click the Play button on the following Windows Media Player viewer:

Note To view this video, you must use Windows Media Player 7.0 or later.

For additional information about how to obtain Windows Media Player version 7.1, click the following article number to view the article in the Microsoft Knowledge Base:

299321 Description and availability of Windows Media Player 7.1

To configure the client computer to use the shared Internet connection, follow these steps:
 * 1) Click Start, and then click Control Panel.
 * 2) Click Network and Internet Connections.
 * 3) Click Internet Options.
 * 4) In the Internet Properties dialog box, click the Connections tab.
 * 5) Click the Setup button.

The New Connection Wizard starts.
 * 1) On the Welcome to the New Connection Wizard page, click Next.
 * 2) Click Connect to the Internet, and then click Next.
 * 3) Click Set up my connection manually, and then click Next.
 * 4) Click Connect using a broadband connection that is always on, and then click Next.
 * 5) On the Completing the New Connection Wizard page, click Finish.
 * 6) Quit Control Panel.

When you now start Microsoft Internet Explorer, the client computer will try to connect to the Internet by using the host computer's shared Internet connection.

To view a video of how to configure the client computer to use the shared Internet connection, click the Play button on the following Windows Media Player viewer:

Note To view this video, you must use Windows Media Player 7.0 or later.

For additional information about how to obtain Windows Media Player version 7.1, click the following article number to view the article in the Microsoft Knowledge Base:

299321 Description and availability of Windows Media Player 7.1

Back to the top

Troubleshooting
When you turn on Internet Connection Sharing on the host computer, the host computer's LAN adapter is automatically assigned the IP address of 192.168.0.1. Therefore, one of the following situations may occur:
 * IP address conflict

Each computer on the LAN must have a unique IP address. If more than one computer has the same IP address, an IP conflict occurs, and one of the network adapters turns off until the conflict is resolved. To resolve this conflict, configure the client computer to automatically obtain an IP address, or assign it a unique IP address.
 * Loss of network connectivity

If your network is configured with a different IP address range than Internet Connection Sharing uses, you will lose network connectivity with the host computer. To resolve this issue, configure the client computers to automatically obtain an IP address, or assign each client computer a unique IP address in the range of 192.168.0.2 to 192.168.0.254.

Back to the top

<div class="references_section">