What Can I Do If My Windows ECS Can Ping a Website but Cannot Access it?
Symptom
Your Windows ECS cannot access websites or applications after running for a long time.
You can remotely log in to the ECS and ping websites using the ECS, but it failed to access websites or applications.
Possible Cause
The dynamic ports of the Windows ECS are used up.
By default, a TCP connection will stay in the TIME_WAIT state for 4 minutes before the port used by this connection is released and available for other connections. If a Windows ECS runs for a long time, there may be too many connections established or in the TIME_WAIT state using up all available ports. In this case, any new attempt to establish a connection will fail.
You can run the following command in the CLI of the Windows ECS to check which connections are in the TIME_WAIT state:
netstat -an |find "TIME_WAIT" /c
The command output is as follows:
Solution
- Log in to the Windows ECS.
- Run cmd as an administrator.
- Run the following command to check dynamic ports:
netsh int ipv4 show dynamicport tcp
Figure 2 Checking dynamic ports
- Run the following commands to increase and then check dynamic ports:
netsh int ipv4 set dynamicport tcp start=1025 num=60000
netsh int ipv4 show dynamicport tcpFigure 3 Setting dynamic ports
- Access external websites or applications again.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot