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

<pre> 65.74.177.129 github.com 65.74.177.129 www.github.com </pre>

Posted by adevadeh 22 Oct 2008 at 04:41PM


Comments

  1. ifosen 22 Oct 2008 at 05:11PM
    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

>