ipcat | Categorization of IP Addresses | TCP library
kandi X-RAY | ipcat Summary
kandi X-RAY | ipcat Summary
Standard CSV with ip-start, ip-end (inclusive, in dot-notation), name of provider, url of provider. IP ranges are non-overlapping, and in sorted order.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ipcat
ipcat Key Features
ipcat Examples and Code Snippets
Community Discussions
Trending Discussions on ipcat
QUESTION
Please pardon for this trival question
Given a set of Ip the set is quite large and might increase https://github.com/client9/ipcat/blob/master/datacenters.csv#L4
Small example set - first column start ip second - end ip range
I will get the user ip from the request . I need to check if the ip falls in these set of ranges . How do i accomplish this.
I have looked into ip_range_check and range_check.
But they donot check for a ip given given range . How is thhis possible in node js with utmost performance. I dont want to go for a exhaustive search as performance is a hight priority.
Please help something new and quite challenging so far to me.
...ANSWER
Answered 2017-Sep-13 at 14:52//Use getCIDR from rangecalc
getCIDR("5.9.0.0", "5.9.255.255")
//This return 5.9.0.0/16
//You can then use ipRangeCheck from ip_range_check
ipRangeCheck("IP TO BE CHECKED", "5.9.0.0/16")
//returns true or false
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ipcat
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page