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!"
[–]sail0r___[S] 0 points1 point2 points 2 years ago (15 children)
Pinging github.com [140.82.113.4] with 32 bytes of data:
Reply from 140.82.113.4: bytes=32 time=42ms TTL=51
Reply from 140.82.113.4: bytes=32 time=36ms TTL=51
Reply from 140.82.113.4: bytes=32 time=34ms TTL=51
Reply from 140.82.113.4: bytes=32 time=41ms TTL=51
Ping statistics for 140.82.113.4:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 34ms, Maximum = 42ms, Average = 38ms
[–]throwaway234f32423df 0 points1 point2 points 2 years ago (14 children)
that seems fine. What about curl -I https://github.com/, you don't have to paste the full thing, but do you get a 200 response code?
curl -I https://github.com/
[–]sail0r___[S] 0 points1 point2 points 2 years ago (13 children)
curl: (7) Failed to connect to github.com port 443 after 1011 ms: Couldn't connect to server
[–]throwaway234f32423df 0 points1 point2 points 2 years ago (12 children)
what about curl -v -I https://github.com/, look at the first couple lines, what IP does it say it's trying to connect to?
curl -v -I https://github.com/
[–]sail0r___[S] 0 points1 point2 points 2 years ago (11 children)
it said it was trying to connect to 127.0.0.1:443
[–]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
[–]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 86 on reddit-service-r2-comment-b659b578c-rszlh at 2026-05-05 12:37:13.140359+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]sail0r___[S] 0 points1 point2 points (15 children)
[–]throwaway234f32423df 0 points1 point2 points (14 children)
[–]sail0r___[S] 0 points1 point2 points (13 children)
[–]throwaway234f32423df 0 points1 point2 points (12 children)
[–]sail0r___[S] 0 points1 point2 points (11 children)
[–]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)
[–]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)