All Projects → frenchbread → private-ip

frenchbread / private-ip

Licence: MIT license
Check if IP address is private.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to private-ip

Geolocate-IP-Browser-Extension
A browser extension, which shows you the origin of your IP address.
Stars: ✭ 21 (-19.23%)
Mutual labels:  ipv6, ipv4, ip-address, ip
ip
Immutable value object for IPv4 and IPv6 addresses, including helper methods and Doctrine support.
Stars: ✭ 212 (+715.38%)
Mutual labels:  ipv6, ipv4, ip-address, ip
Ship
A simple, handy network addressing multitool with plenty of features
Stars: ✭ 81 (+211.54%)
Mutual labels:  ipv6, address, ipv4, ip
IPpy
🚀 Ping IP addresses and domains in parallel to find the accessible and inaccessible ones.
Stars: ✭ 54 (+107.69%)
Mutual labels:  ipv6, ipv4, ip-address, ip
bacnet-stack
BACnet Protocol Stack library provides a BACnet application layer, network layer and media access (MAC) layer communications services.
Stars: ✭ 199 (+665.38%)
Mutual labels:  ipv6, ipv4, ip
Ip Num
A TypeScript/JavaScript library for working with ASN, IPv4, and IPv6 numbers. It provides representations of these internet protocol numbers with the ability to perform various IP related operations like parsing, validating etc. on them
Stars: ✭ 113 (+334.62%)
Mutual labels:  ipv6, ipv4, ip-address
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (+492.31%)
Mutual labels:  ipv6, ipv4, ip-address
Aggregator
A stand-alone class implementation of the IPv4+IPv6 IP+CIDR aggregator from CIDRAM.
Stars: ✭ 19 (-26.92%)
Mutual labels:  ipv6, ipv4, ip
Ip
🌏根据IpV4、IpV6地址获取定位信息的PHP🐘组件 PHP components that obtain location information based on IpV4, IpV6 addresses
Stars: ✭ 23 (-11.54%)
Mutual labels:  ipv6, ipv4, ip
ngx-ip
An Angular network address component (IPv4, IPv6 and MAC)
Stars: ✭ 20 (-23.08%)
Mutual labels:  ipv6, address, ipv4
Ipnetwork
A library to work with CIDRs in rust
Stars: ✭ 64 (+146.15%)
Mutual labels:  ipv6, ipv4, ip-address
Php Ip Tools
Useful tools for IP manipulations
Stars: ✭ 152 (+484.62%)
Mutual labels:  ipv6, ipv4, ip
ipaddress
Data analysis of IP addresses and networks
Stars: ✭ 20 (-23.08%)
Mutual labels:  ipv6, ipv4, ip-address
ipapi-python
Python bindings for https://ipapi.co (IP Address Location) - Use with python / django / flask for IP address location lookup
Stars: ✭ 42 (+61.54%)
Mutual labels:  ipv6, ipv4, ip-address
IP2Location-C-Library
IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
Stars: ✭ 37 (+42.31%)
Mutual labels:  ipv6, ipv4, ip-address
ip2location-nginx
Nginx module that allows user to lookup for geolocation information using IP2Location database.
Stars: ✭ 33 (+26.92%)
Mutual labels:  ipv6, ipv4, ip-address
php-ip-anonymizer
IP address anonymizer library for PHP
Stars: ✭ 55 (+111.54%)
Mutual labels:  ipv6, ipv4, ip-address
PHP-IPAddress
IP Address utility classes for PHP
Stars: ✭ 63 (+142.31%)
Mutual labels:  ipv6, ipv4, ip-address
Ipwhois
Retrieve and parse whois data for IPv4 and IPv6 addresses
Stars: ✭ 432 (+1561.54%)
Mutual labels:  ipv6, ipv4, ip-address
Iptools
PHP Library for manipulating network addresses (IPv4 and IPv6)
Stars: ✭ 163 (+526.92%)
Mutual labels:  ipv6, ipv4, ip

private-ip

Check if IP address is private.

badges

huntr

Installation

❯ npm install private-ip --save

or

❯ yarn add private-ip

Usage

import is_ip_private from 'private-ip'

is_ip_private('10.0.0.0')
// => true

is_ip_private('101.0.26.90')
// => false

is_ip_private('not.an.ip.com')
// => undefined

Development

Tests
$ yarn run test
Build
$ yarn run build

Authors

Credits

https://github.com/frenchbread/private-ip/blob/master/CREDITS.md

License

MIT

IANA Reserved IP list

https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry-1.csv

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].