The InternetGetConnectedState Function Returns FALSE When Connected to the Internet (315035)
The information in this article applies to:
- Microsoft Windows Millennium Edition
This article was previously published under Q315035 SYMPTOMS
The Win32 Internet InternetGetConnectedState function returns FALSE if the following conditions exist on your computer:
- The default gateway address is not configured, and your computer is on a private Local Area Network (LAN) that is connected to the Internet. See the "How to Check the Default Gateway Value" topic in the "More Information" section of this article.
- The Never dial a connection option is
selected on the Connection tab of the Internet Options dialog box.
CAUSE
An unconfigured default gateway address can occur in the following scenarios:
- The DHCP server does not have a default gateway configured for the scope that is available to the affected client computer or computers.
- A non-Microsoft provided Network Address Translation (NAT) technology package is in use, that does not provide a default gateway address to connected client computers. This type of technology may also be referred to as Internet Connection Sharing (ICS). Please refer to the "References" section of this article.
- The affected client computer is using static IP addressing, and does not have a default gateway address configured. Please refer to the "How to Check the Default Gateway Value" topic in the "More Information" section of this article.
- The affected client computer is using Automatic Private IP Addressing (APIPA). This occurs if a DHCP server is not available or does not exist on the network. Please refer to the "References" section of this article.
Additionally, and independent from the Internet Explorer Never Dial a Connection setting previously noted, the Code Download Manager (CDM) technology underlying Windows Update may be disabled. This prevents your computer from obtaining updated drivers and components from the Microsoft Windows Update Web site. Please refer to the "References" section of this article.
RESOLUTION
To resolve this issue, use either of the following methods:
- Manually configure the affected client or clients with an appropriate address for the default gateway. You can do so on the Gateway tab of the TCP/IP Properties for the network adapter that is connected to the LAN. You can view this setting by using the Network tool in Control Panel to view the Configuration tab. Note that you must restart the client computer after you change the indicated value.
- If your LAN has a DHCP server (or ICS/NAT device that provides DHCP services), configure the DHCP options for the applicable scope with an appropriate IP address for the default gateway.
REFERENCESFor additional information about ICS, click the article number below
to view the article in the Microsoft Knowledge Base:
234815 Description of Internet Connection Sharing
For additional information about APIPA, click the article number below
to view the article in the Microsoft Knowledge Base:
220874 Automatic Windows 98/Me TCP/IP Addressing Without a DHCP Server
For additional information about Windows Update and CDM, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
269255 Driver Signing in Windows Millennium Edition
Modification Type: | Major | Last Reviewed: | 10/7/2005 |
---|
Keywords: | kbenv kbfix kbnetwork kbprb KB315035 |
---|
|