Software Testing | Solving the problem of Github port 443: Timed out connection timeout

Insert image description here

Preface

GitHub is one of the world's largest open source code hosting platforms, and many developers and teams use it to manage and collaborate on open source projects. But now, we often encounter "GitHub Port 443: Timed Out" error when cloning or submitting code, which means that our computer cannot establish a secure connection with the GitHub server. This problem is usually caused by network issues or firewall settings. In this article, we will detail how to solve this problem.

Problem description and cause

Error content: Failed to connect to github.com port 443 after ** ms: Timed out

Cause analysis: When encountering this kind of error, it is often due to a problem with the Git proxy settings. To solve this problem, we need to make modifications in the Git proxy configuration.

problem solved

  1. Cancel original proxy settings

We can enter the following command on the command line to modify the settings:

git config --global --unset http.proxy
git config --global --unset https.proxy
  1. Flush DNS cache

After modifying the proxy settings, the next step is to refresh the DNS cache. The command is as follows:

ipconfig /flushdns
  1. Reset proxy

We need to first confirm the current proxy information of this machine, open: Network and Internet Settings --> Proxy (Windows 10 directly searches to change proxy settings), check the port number of the proxy used by this machine, as shown below:

Insert image description here

We can see that the proxy address of this machine is: 127.0.0.1:33210After obtaining the proxy address, we can use the following command to reconfigure the proxy:

git config --global https.proxy http://127.0.0.1:33210
git config --global https.proxy https://127.0.0.1:33210

Guess you like

Origin blog.csdn.net/Tester_muller/article/details/132674979