I am trying to push my changes to a remote repository on GitHub using the command git push
, but I get this error:
fatal: unable to access https://github.com/something.git :Failed to connect to 192.168.2.3 port 1080 after 3063 ms: No route to host
I have checked my proxy settings and they are disabled, so I don’t understand why it is trying to connect to 192.168.2.3 port 1080. This problem happens with other repositories as well, not just this one.
I have searched for similar questions on Stack Overflow, but none of the solutions worked for me. For example, I have tried:
Setting
http.proxy
andhttps.proxy
to empty strings in my git configUsing
git config --global --unset http.proxy
andgit config --global --unset https.proxy
Using
git config --global --add remote.origin.proxy ""
Using a different protocol (ssh) instead of https
None of these methods solved the problem. I still get the same error.
What could be causing this issue and how can I fix it?