Sometimes you want to know if an IP is private or not. Here's some Javascript: https://gist.github.com/zyphlar/8e7b2017a5d925ddd12c