For many of these steps, you’ll be typing at the command prompt. To open a command prompt window in Windows 2000 or XP, click Start Run, type cmd in the box, and click OK. To open a command prompt window in Windows 95, 98, or Me, click Start Run, type command in the box, and click OK. Type one command per line, and press Enter after each one to execute it. To close the command prompt window, use the exit command.
Determine the TCP/IP SettingsDetermine the TCP/IP settings of each computer on the local area network. In XP, open the Network Connections folder, right click the LAN connection, and click Status Support Details. For example, here are the Status and Details views for the LAN connection on an Internet Connection Sharing host.
In Windows 95/98/Me, click Start Run, type winipcfg in the box, and click OK. Select the LAN adapter from the menu, and click More Info. Here’s the winipcfg view for an ICS client running Windows Me.
You can also see the TCP/IP settings from the command prompt. This is especially convenient if a computer has more than one network adapter. Use the ipconfig /all command, which is available in all versions except Windows 95. The output from this command can be long, so it’s best to write it to a file. Specify the file name in the command this way: ipconfig /all >ipconfig.txt
Here’s the output for a Windows XP ICS host that’s sharing its cable modem connection:
Description of TCP/IP Settings
Here are the TCP/IP settings that are used in network troubleshooting:
- Subnet Mask – Used in conjunction with the IP address to determine which subnet an adapter belongs to. At the simplest level, communication is only possible between two network adapters when they’re in the same subnet.
- Default Gateway - IP address of a computer or router, on one of this computer’s local area networks, that knows how to communicate with subnets not present on this computer. For an Internet connection, the default gateway is a router belonging to your Internet service provider, and all access to sites on the Internet goes through it. For an ICS client, the default gateway is the ICS host. If you use a hardware router, it serves as the default gateway.
DHCP Server – If an adapter is configured to obtain an IP address automatically, this is the address of the server that provides it. It could be your ISP, an ICS host, or a hardware router.
SUMMARY
If you click the Internet Protocol (TCP/IP) entry in the This connection uses the following items list that is displayed in the Local Area Connection properties, you may notice that the Uninstall button is unavailable (disabled). This behavior occurs because the Transport Control Protocol/Internet Protocol (TCP/IP) stack is a core component of Microsoft Windows Server 2003 and cannot be removed.In some scenarios, you may want to reinstall TCP/IP to return the TCP/IP stack to its original state. You can use the Netsh.exe utility to reset the TCP/IP stack to the same conciliation that it was when you first installed the operating system.
MORE INFORMATION
The Netsh.exe utility (netsh) is a command-line scripting tool that you can use to configure and monitor Windows Server 2003 networking. This tool gives you an interactive network shell interface.You can use the reset command in the Internet Protocol (IP) context of this utility to rewrite the following TCP/IP-related registry keys:
- SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\
- SYSTEM\CurrentControlSet\Services\DHCP\Parameters\
If you run this command, you get the same result as if you removed and reinstalled the TCP/IP protocol. Warning The netsh int ip reset command will reset all IP information, default gateway information, and DNS server information. Before you restart the computer after you run this command, you must configure your TCP/IP settings. Otherwise, you may not be able to connect to the computer remotely.
Command samples
The following examples describe how to use the netsh command to reset the TCP/IP protocol stack.
Example 1
1. Click Start, and then click Run.
2. In the Open box, type cmd, and then click OK.
At the command prompt, type the following command, and then press ENTER:
3.netsh int ip reset resetlog.txt
NOTE: In the preceding command, "int" is the shortened form of the interface command.
4. Type exit, and then press ENTER.
Example 2
1. Click Start, and then click Run.
2. In the Open box, type cmd, and then click OK.
At the command prompt, type the following command, and then press ENTER:
3. netsh int ip reset c:\resetlog.txt
4. Type exit, and then press ENTER.
To view help for the command, type the command, type a space, and then type ?. Additional help is available for commands in the sub-contexts of the netsh command. For example, to view help for the netsh commands that are described in the preceding section, type the following commands at the command prompt:
• Type netsh ?, and then press ENTER.
• Type netsh int ?, and then press ENTER.
• Type netsh int ip ?, and then press ENTER.
• Type netsh int ip reset ?, and then press ENTER.
Problem: Windows XP takes a long time to open a shared disk or folder on a computer running Windows 95, 98, or Me
Description: This is a different problem than My Network Places taking a long time to open. This problem occurs after you double click a shared disk or folder.
Possible Solutions:
This Microsoft Knowledge Base article describes a bug in Windows 2000 Professional that might also exist in Windows XP. Disable searching for scheduled tasks by deleting this registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\
CurrentVersion\Explorer\RemoteComputer\NameSpace\
{D6277990-4C6A-11CF-8D87-00AA0060F5BF}
· Delete stored network passwords
1. Click Control Panel User Accounts.
2. Click your user name.
3. Click Manage my network passwords.
4. Click each entry and click Remove
Problem: Network Connection Has IP Address 169.254.x.x
Description: The network card is configured to obtain an IP address automatically, and it’s connected to a network with a DHCP server: hardware router, another computer running Internet Connection Sharing, cable modem, DSL modem, etc. But it gets a 169.254.x.x IP address, which indicates that it can’t communicate with the DHCP server:
Possible Solutions:
- Connect the computer using a different Ethernet cable or hub/switch/router port.
- Download and install the latest firmware for the hardware router.
- Disable XP’s Internet Connection Firewall on the local area network connection.
- The card is configured to automatically sense network speed and duplex mode, but auto-sensing is failing. Configure the speed and duplex mode manually. For example, most switches and routers use 100 Mb speed and full duplex. To make the settings, right click the network connection and click Properties Configure Advanced.
- Un-install the network card and move it to a different slot.
- If you have a cable modem connection, turn off the computer, turn off the cable modem, and wait a few minutes. Turn on the cable modem, and then turn on the computer.
Enable NetBIOS Over TCP/IP (NetBT)
Windows peer-to-peer networks use the NetBIOS (Network Basic Input/Output System) applications programming interface for File and Printer Sharing. NetBIOS names identify computers on the network. NetBIOS broadcasts locate computers and shared disks and folders on the network and allow them to appear in My Network Places and Network Neighborhood.
NetBIOS is not the same thing as NetBEUI (NetBIOS Extended User Interface):
- NetBIOS is an applications programming interface (API).
- NetBEUI is a transport protocol.
- File and Printer Sharing requires NetBIOS.
- Nothing in Windows networking requires NetBEUI.
The NetBIOS API must be enabled over one of the transport protocols: NetBEUI, TCP/IP, or NWLink IPX/SPX. Networks that use TCP/IP for File and Printer Sharing require NetBIOS Over TCP/IP, also known as NetBT.
To enable NetBIOS Over TCP/IP on Windows XP and Windows 2000:
1. Open the Network Connections folder.
2. Right click the local area network connection and click Properties.
3. Double click Internet Protocol (TCP/IP).
4. Click Advanced.
5. Click WINS.
6. Click the Enable NetBIOS Over TCP/IP button.
To enable NetBIOS Over TCP/IP on Windows 95/98/Me:
1. Click Start Settings Control Panel Network.
2. Double click the TCP/IP->adapter entry for the local area network.
3. Click NetBIOS.
4. The I want to enable NetBIOS over TCP/IP box is normally checked and grayed out. If it’s un-checked, click the box to put in a check mark.
Error Message: Network Cable Unplugged
Description:
Don’t take this message literally – there are many causes besides not having a cable physically plugged into the network card. The message really means that the network card doesn’t detect a live link to another device on the other end of the cable.
Possible Solutions:
Download and install the latest network card driver program.
Check the cabling – a bad cable will prevent link detection. Substitute a cable that’s known to be good.
Check the link lights on the device on the other end of the cable, whether it’s a hub, switch, router, or a NIC in another computer. It should show a live link to the NIC. If it doesn’t, try a different port.
Auto-detecting speed and duplex mode can be unreliable. Set them manually. Most routers and switches use 100Mb, full duplex. Hubs can only use half duplex.
Error Message: xxxxx is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permission .
Description:
xxxxx is a computer or workgroup name. This is a generic networking error message that doesn’t provide much, if any useful information. It should be followed by a more specific message.
Error Message: The list of servers for this workgroup is not currently available.
Solution: Make sure that the Computer Browser service is running on at least one Windows XP computer on the network:
1. Right click My Computer, and click Manage.
2. Double click Services and Applications.
3. Double click Services.
4. Double click Computer Browser. If the Service status is Stopped, click Start.
5. Set the Startup type to Automatic.
Error Message: Unable to browse the network. The network is not accessible.
Description: This error message appears on a computer running Windows 95/98/Me.
Solution: Make sure that:
Problem: Internet Connection Sharing Clients Can’t Access Some Web Sites
Description: This is a common problem when the host computer has a DSL connection that uses PPP Over Ethernet (PPPoE), due to a bug in the Windows XP PPPoE client.
Solution: Many people have reported solving the problem by using the RASPPPoE client instead of XP's. It’s available for free download from its author.
Problem: Computer A Can Ping Computer B, but not Vice Versa
Solution: This is almost always caused by an improperly configured firewall on Computer A.
Problem: XP's Network Setup Wizard Says That No Network Card Is Installed
Solution: XP's Network Setup Wizard sometimes fails to recognize an installed and working network card. This is because the NIC's driver program doesn't respond correctly to all of the queries that the Wizard makes when it's looking for a NIC. Configure the card’s TCP/IP properties manually. Here’s how to do it for Windows 95/98/Me, Windows 2000, and Windows XP. Then set the workgroup name to MSHOME.
Problem: One Computer Can’t Access Some Web Sites, but Other Computers Can
Solution: Look for the Windows Hosts file on the problem computer:
Windows 95/98/Me: C:\Windows\Hosts
Windows 2000: C:\WinNT\System32\Drivers\Etc\Hosts
Windows XP: C:\Windows\System32\Drivers\Etc\Hosts
Open it with a text editor and you'll probably find lines with the names of the sites that you can't access. Delete those lines, save the file, and try again. If those are the only lines in the file, delete the file. Be sure to save it with a file name of just Hosts, with no file type. If your editor saves it as Hosts.txt, rename it to just Hosts.
The Hosts file can be created by "web accelerator" programs that store name-to-IP address translations. This might speed up access by a tiny amount, but it causes problems when a site's IP address changes.
Error Message - PING: transmit failed, error code 65
Description: This error message occurs when you try to ping any IP address.
Solution: A firewall program has been incompletely removed. Re-install it, then remove it as described in our article on removing firewalls.
Problem: A shared disk or folder doesn’t appear in My Network Places
Description: The disk or folder is shared correctly on another computer, but it doesn’t appear.
Solution 1: Click Add a network place and follow the prompts to add it. Browse to it through Entire Network, or specify the path name using the form\\computer\share
Solution 2: Click View workgroup computers, then click the computer that has the shared disk or folder.
Error Message: No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
Description: Windows XP Home Edition allows a maximum of 5 other computers to access its shared disks and folders simultaneously. Windows XP Professional allows a maximum of 10. This message appears when the maximum has been reached and another computer requests access.
Solution: There’s no way to change the limit. A computer that’s already connected must close its connection before another can have access.
Error Message: An error has occurred while trying to share . The Server service is not started. The shared resource was not created at this time.
Solution: To start the Server service:
1. Right click My Computer and select Manage.
2. Double click Services and Applications.
3. Double click Services.
4. Scroll down the list of services and double click Server.
5. Click the Start button.
6. Set the Startup type to Automatic.
7. Click Apply and OK.