This topic describes the problem, its causes, and solutions.
Problem description
You cannot use the built-in Internet Explorer browser on a Windows instance to access external websites.
Causes
Possible causes include:
The ECS instance is not assigned a public IP address.
Local network or DNS resolution problems.
Incorrect browser configuration.
Restrictive network settings, such as an IP security policy.
Solutions
Follow these steps to resolve the issue.
The following steps use an instance running the 64-bit Chinese Edition of Windows Server 2019 Datacenter as an example. The actual steps may vary based on the operating system of your instance.
Step 1: Check the public IP address
View the network information of the ECS instance.
For more information, see View instance information.
If the ECS instance is assigned a public IP address, proceed to Step 2: Check network settings.
If the ECS instance does not have a public IP address, proceed to the next step.
Choose one of the following methods to assign a public IP address to the ECS instance:
Method 1:
Apply for an elastic IP address (EIP) and associate it with the ECS instance. For more information, see Apply for an EIP and Associate an EIP with an ECS instance.
Method 2:
Upgrade the public bandwidth configuration to obtain a fixed public IP address. For more information, see Modify the bandwidth of a subscription instance with a fixed public IP address.
Method 3:
Use an Internet NAT gateway to access the internet. For more information, see Use the SNAT feature of an Internet NAT gateway to access the internet.
Step 2: Check network settings
Check the local network
Obtain the public IP address of the local host.
In the lower-left corner of the desktop, click the
icon.Enter
cmd, and then click Command Prompt.In the Command Prompt, run the
curl cip.cccommand.If the command output returns the public IP address of the local host as shown in the following example, the local network is working correctly. You can skip the DNS resolution check and proceed to Step 3: Troubleshoot Internet Explorer and Step 4: Check for network restrictions.
Microsoft Windows [Version 10.0.17763.3770] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Administrator>curl cip.cc IP : 47.xxx Location: China ISP : Alibaba Cloud Data 2 : xxx xxx City | Alibaba Cloud Data 3 : xxx xxx City | Alibaba Cloud URL : http://www.cip.cc/47.9xxx C:\Users\Administrator>If the command does not return the public IP address of the local host, as shown in the following example, check the local network configuration.
C:\Users\Administrator>curl cip.cc curl: (28) Failed to connect to cip.cc port 80 after 21015 ms: Timed out C:\Users\Administrator>
Check the local network configuration.
In the lower-left corner of the desktop, click the
icon.Enter
Control Panel, and then click Control Panel in the panel that appears.In Control Panel, select Network and Internet > Network and Sharing Center, and then click Ethernet.
In the Ethernet Status window, click Details, and then check whether DHCP is enabled.
In the Ethernet Status window, click Properties. Select Internet Protocol Version 4 (TCP/IPv4), click Properties, and then select Obtain an IP address automatically.
Check DNS resolution
Connect to the ECS instance.
For more information, see Overview of connection methods.
In the lower-left corner of the desktop, click the
icon.Enter
cmd, and then in the panel that appears, click Command Prompt.In the Command Prompt, run the
ping <domain_name>command to check if DNS resolution is working correctly.For example, run the
ping www.aliyun.comcommand, where www.aliyun.com is the domain name of an external website.If the command resolves the domain name to an IP address as shown in the following example, DNS resolution is working correctly. Proceed to Step 3: Troubleshoot Internet Explorer.
Microsoft Windows [Version 10.0.17763.3770] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Administrator>ping www.aliyun.com Pinging www.aliyun.com w.cdngslb.com [8.132.XX.XX] with 32 bytes of data: Reply from 8.132.XX.XX: bytes=32 time=11ms TTL=55 Reply from 8.132.XX.XX: bytes=32 time=11ms TTL=55 Reply from 8.132.XX.XX: bytes=32 time=11ms TTL=55 Reply from 8.132.XX.XX: bytes=32 time=11ms TTL=55 Ping statistics for 8.132.XX.XX: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 11ms, Maximum = 11ms, Average = 11ms C:\Users\Administrator>If the command fails to resolve the domain name, DNS resolution has failed. Proceed to the next step to resolve the issue.
Resolve the DNS issue.
In the lower-left corner of the desktop, click the
icon.Enter
ncpa.cpl, and then click ncpa.cpl in the pop-up panel.In the Network Connections window, right-click the appropriate network interface and click Properties.
In the Ethernet Properties window, double-click Internet Protocol Version 4 (TCP/IPv4).
Select Use the following DNS server addresses. Enter the Alibaba Cloud public DNS addresses, 223.5.5.5 and 223.6.6.6, into the Preferred DNS server and Alternative DNS server fields, respectively.
NoteYou can also use the IP addresses of other public DNS servers.
Click OK and close the configuration windows.
Try accessing an external website again with Internet Explorer.
If you can access the website, the issue is resolved.
If you still cannot access the website, proceed to Step 3: Troubleshoot Internet Explorer.
Step 3: Troubleshoot Internet Explorer
If DNS resolution works but you still cannot access websites with Internet Explorer, the cause might be your browser configuration or a compatibility issue. To verify this, try another browser, such as Chrome or Firefox. If other browsers can access the websites, you may need to reset Internet Explorer's settings.
To reset Internet Explorer, follow these steps:
Connect to the ECS instance.
For more information, see Overview of connection methods.
Open Internet Explorer.
In the upper-right corner of Internet Explorer, click the
icon, and then click Internet Options.Click the Advanced tab, and then click Reset.
In the confirmation dialog box, click Reset.
Step 4: Check for network restrictions
If the issue persists, an IP security policy or other third-party network management software may be blocking access. Follow these steps to check for network restrictions:
Connect to the ECS instance.
For more information, see Overview of connection methods.
In the lower-left corner of the desktop, click the
icon.Enter
secpol.msc, and then click secpol.msc in the panel that appears.In the navigation pane on the left of the Local Security Policy window, select IP Security Policies on Local Computer. In the right-side pane, check the Policy Assigned column. If a policy is assigned, right-click it and select Un-assign so that the value in the column changes to No.
Try accessing an external website again with Internet Explorer.
If you can access the website, the issue is resolved.
If you still cannot access the website, perform the following steps:
Check for any other network security software that might be configured to block or restrict access. If such software is found, remove the restriction and try accessing the website again.
Check if the Windows instance has unreleased
TIME_WAITconnections, which can prevent access to external websites. For more information about how to resolve this issue, see An ECS instance that runs Windows fails to access the internet because TIME_WAIT connections are not released.