GitHub Connection Refused

📢 This article was translated by Gemini-3-flash

Intro

Today I tried pushing via Git and got: fatal: unable to access 'https://github.com/yexca-VRChat/yexca-VRChat.github.io.git/': Failed to connect to 127.0.0.1 port 1081 after 2074 ms: Connection refused. Even a reboot didn’t help, so it was time to find a fix (why won’t it let me access my own repo?).

Troubleshooting

Research suggested it was proxy-related, but my proxy is configured on the router.

I connected to a different standard router and tried pushing again, but the issue persisted.

Next, I tried unsetting the Git proxy configuration, which also did nothing:

1
2
git config --global --unset http.proxy
git config --global --unset https.proxy

Finally, I remembered I might have messed with WinXray. I checked, and sure enough, PAC mode was active. After turning it off, the push worked perfectly.

References

fatal: unable to access ‘https://github.com/fmoraless/e-commerce.git/’: Failed to connect to 127.0.0.1 port 56832: Connection refuse · Issue #11981 · desktop/desktop

Fixing Git download error: Failed to connect to 127.0.0.1 port 1080: Connection refused - CSDN Blog

Git Error: Solving Connection Refused Issues - CSDN Blog

This post is licensed under CC BY-NC-SA 4.0 by the author.