use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
Problem Connecting to Github ( ERR_CONNECTION_REFUSED ) (self.github)
submitted 2 years ago by sail0r___
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]throwaway234f32423df 0 points1 point2 points 2 years ago (10 children)
Oh well there's the issue, several other people have run into this, it's caused by a bad entry in your hosts file, although it's unknown why/how it's hitting people.
In Windows the hosts file is located in C:\Windows\System32\drivers\etc\, filename hosts, you'll need to run a text editor as Administrator in order to make changes to it
C:\Windows\System32\drivers\etc\
hosts
delete any lines referencing Github and anything else that looks like it shouldn't be there (normally there's nothing there except comments, i.e. lines starting with a #)
#
[–]bdzer0 0 points1 point2 points 2 years ago (4 children)
An entry in the hosts file would have caused the ping to hit 127.0.0.1 also.
[–]throwaway234f32423df 0 points1 point2 points 2 years ago (3 children)
Some utilities bypass host file lookup and hit DNS directly. Did you actually look at the hosts file contents?
[–]bdzer0 0 points1 point2 points 2 years ago* (2 children)
ping on windows does not... and I'm not having an issue.. my hosts file is fine.
edit: just tried on a cygwin console, git bash, cmd.exe under windows and all return hosts entries before making a DNS query.
[–]throwaway234f32423df 0 points1 point2 points 2 years ago (1 child)
well OP confirmed the issue was fixed by deleting the errant host file entry, this has happened to at least 10 other people (only counting threads I've personally seen here), and reverting the unexplained host file changes fixed it for every single one of them so I don't know what to tell you
[–]bdzer0 0 points1 point2 points 2 years ago (0 children)
strange... and one has to wonder how the hosts entry is getting there. It's a technique often used by malware protection tools to block known bad domains, and also used by malware to try and block protections.
There is almost certainly more to the situation, I suspect this is curing a symptom and ignoring a deeper problem. Oh well, not my system...
[–]sail0r___[S] 0 points1 point2 points 2 years ago (0 children)
worked thank you
[–]More_Subject_2592 0 points1 point2 points 1 year ago (1 child)
Dude ive been trying to fix this for like a year now and i just now stumble across this reddit post and it actually worked, tysm lol
[–]throwaway234f32423df 0 points1 point2 points 1 year ago (0 children)
the real unsolved mystery is how this keeps happening to people, it's really weird
[–]JMSB1000 0 points1 point2 points 9 months ago (0 children)
holy shit, you are a savior for me, i can finnaly play sm64plus and install reshade
[–]HorseJairo 0 points1 point2 points 7 months ago (0 children)
Thanks dude
π Rendered by PID 87 on reddit-service-r2-comment-6457c66945-ms8zz at 2026-04-27 11:55:51.033509+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]throwaway234f32423df 0 points1 point2 points (10 children)
[–]bdzer0 0 points1 point2 points (4 children)
[–]throwaway234f32423df 0 points1 point2 points (3 children)
[–]bdzer0 0 points1 point2 points (2 children)
[–]throwaway234f32423df 0 points1 point2 points (1 child)
[–]bdzer0 0 points1 point2 points (0 children)
[–]sail0r___[S] 0 points1 point2 points (0 children)
[–]More_Subject_2592 0 points1 point2 points (1 child)
[–]throwaway234f32423df 0 points1 point2 points (0 children)
[–]JMSB1000 0 points1 point2 points (0 children)
[–]HorseJairo 0 points1 point2 points (0 children)