make sure github.com is accessible in china

Now that github hosts Rails and almost all the other important code that we rely on, it is important that we can access it at all times. Unfortunately, sometimes in China you just can’t rely on the any site being available. Recently, github.com has been inaccessible for us. Thankfully, a tip from the github mailing list works wonderfully here. Reposting to make sure anyone else who has this issue can find a way to fix it.

  • MacOS X/Linux add these lines to /etc/hosts
  • Windows add these lines to \Windows\system32\drivers\etc\hosts
  65.74.177.129 github.com 
  65.74.177.129 www.github.com

Posted by Adeh Wed, 22 Oct 2008 16:41:00 GMT


Comments

  1. ifosen 30 minutes later:
    hey, thank you! I can access the GITHUB.com again after I added the two lines in my HOST file. 65.74.177.129 github.com 65.74.177.129 www.github.com