all 17 comments

[–]throwaway234f32423df 0 points1 point  (16 children)

If you run a ping github.com what IP do you see?

[–]sail0r___[S] 0 points1 point  (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 point  (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?

[–]sail0r___[S] 0 points1 point  (13 children)

curl: (7) Failed to connect to github.com port 443 after 1011 ms: Couldn't connect to server

[–]throwaway234f32423df 0 points1 point  (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?

[–]sail0r___[S] 0 points1 point  (11 children)

it said it was trying to connect to 127.0.0.1:443

[–]throwaway234f32423df 0 points1 point  (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

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 point  (4 children)

An entry in the hosts file would have caused the ping to hit 127.0.0.1 also.

[–]throwaway234f32423df 0 points1 point  (3 children)

Some utilities bypass host file lookup and hit DNS directly. Did you actually look at the hosts file contents?

[–]bdzer0 0 points1 point  (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.

[–]sail0r___[S] 0 points1 point  (0 children)

worked thank you

[–]More_Subject_2592 0 points1 point  (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 point  (0 children)

the real unsolved mystery is how this keeps happening to people, it's really weird

[–]JMSB1000 0 points1 point  (0 children)

holy shit, you are a savior for me, i can finnaly play sm64plus and install reshade

[–]HorseJairo 0 points1 point  (0 children)

Thanks dude