I am behind a commercial proxy/VPN that I don't know what proxy protocol it uses.
When cloning my GitHub source code, I see GitHub: "failed to connect to github 443 windows/ Failed to connect to gitHub - No Error".
Back in the days when I was still using a DIY shadowrocks, I resolved it by git config --global http.proxy 127.0.0.1:1080
. However, now I don't know what proxy address to put into the field.
Is there anyway I can find it?
I managed to have it solved on Windows10 by the following steps:
In MINGW64, do netstat -ano | findstr "LISTEN"
, by which we shall see some rows in the form: TCP 127.0.0.1:15292 0.0.0.0:0 LISTENING 14332
, where the last column is the PID of the proc uses the port.
Filter the ports that we suspect could be our proxy address, note down their PIDs, and put them in the findstr field of this command: tasklist | findstr "14332 4104 26352 12996"
.
We shall now see the program name of the PIDs, find the VPN program, the port binds to it is the one we want.