Questions tagged [ip2location]
31 questions
1
vote
2 answers
How to convert IP number to IPV6 using PowerShell?
I have CSV containing IP number's related to IPv6 and I am reading and converting them to IPv6 ip address which is failing at the moment.
I am using below code but getting error:
Cannot convert value "281470698520576" to type…

Naveen Kumar
- 1,266
- 1
- 21
- 50
1
vote
2 answers
What is the good way to read data from CSV and converting them to JSON?
I am trying to read the data from CSV file which has 2200000 records using PowerShell and storing each record in JSON file, but this takes almost 12 hours.
Sample CSV Data:
We will only concern about the 1st column value's.
Code:
function…

Naveen Kumar
- 1,266
- 1
- 21
- 50
1
vote
1 answer
Convert IP2Location Decimals to IP
IP ranges in the ip2location database are represented by first and last IPs as integers.
I don't know how the conversion from IPs to integers is done, but documentation indicates it is equivalent to this code in PHP:
function ip62long($ipv6) {
…

some-user
- 3,888
- 5
- 19
- 43
1
vote
0 answers
Docker block IP
I tried to use docker in our network but it seems like they block countries.
nSince Docker is a US company, we must comply with US export control regulations. In an effort to comply with these, we now block all IP addresses that are located in…

Roy Talias
- 11
- 1
1
vote
1 answer
IP2Location record to Pandas DataFrame
I've used IP2Location to gather information on IP addresses and I want it in a DataFrame but when I tried to use pd.json_normalize(ip) I got an error.
AttributeError: 'IP2LocationRecord' object has no attribute 'values'
The information I got from…

asfjl1123
- 11
- 1
1
vote
1 answer
T-SQL data type for 39-digit number?
I'm using the free IPv6 data table from Ip2Location. The table schema is defined as:
CREATE TABLE [ip2location].[dbo].[ip2location_db11_ipv6](
[ip_from] char(39) NOT NULL,
[ip_to] char(39) NOT NULL,
[country_code] nvarchar(2) NOT NULL,
…

PixelPaul
- 2,609
- 4
- 39
- 70
1
vote
1 answer
IP2LOCATION - SQL Query vs. Binary File?
Looking for a simple answer :
I have a website similar to https://whatismyip.com/
The visitor hits the site, and some data is output based on their IP address.
The IP records database is available in a binary file, or in a csv that can be imported…

David Hunter
- 11
- 1
1
vote
2 answers
ip2location: get all ip(s) belonged to a domain
I want to have all ip(s) belonged to a domain, e.g. google.com, I recently have a look at this, https://github.com/ip2location/ip2location-cakephp. So, what I am going to do is likes this:

Bùi Văn Thủ
- 353
- 4
- 14
0
votes
1 answer
Plot multiple IP addresses on a map and generate country names from IP Addresses RStudio code
I need to generate the country codes from a list of IP addresses (around 300) and plot them on a map using R code for my MSc project.
I have tried rgeolocation but it's a no go on my R version 4.3.1 and maxmind doesn't work. Also tried iptocountry…

Steph T
- 1
0
votes
0 answers
ip2proxy detect VPN and Datacenter IPs in Openresty
I'm using ip2location service called ip2proxy PX1BIN and downloaded the file IP2PROXY-IP-COUNTRY.BIN
Here is my code:
location /check_ip {
# access_by_lua_file /usr/local/openresty/nginx/html/default/check_ip.lua;
default_type text/html;
…

Abdol Seed
- 1,227
- 1
- 14
- 23
0
votes
4 answers
Are these Java long integer or BigInteger format numbers? IP2Location csv database
I have never used long integer or BigInteger format numbers in my Java code, and this aspect of the IP2Location databases does not appear to be documented. I need to know which it is, so that I can write some simple code to compare numbers for…

Mick
- 663
- 1
- 9
- 18
0
votes
0 answers
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/net/http/HttpRequest;
I want to use IP2Location.io in my Android Studio app. I am starting with this program from their internet site. I am stuck on this error. I do not understand why this difficulty including java/net/http/HttpRequest. I researched many similar…

Mick
- 663
- 1
- 9
- 18
0
votes
0 answers
Getting error while posting ip address documents in elastic?
I have IPv6 in decimal format, I am trying to convert it into the ip addresses then converting the start and end ip addresses into CIDR notation using PowerShell.
Sample Data:
startIP: "281470698520851"
endIP: "281470698520851"
Result:
ipv6-range:…

Naveen Kumar
- 1,266
- 1
- 21
- 50
0
votes
0 answers
how to convert ip2location CSV database to BIN data file
I'm building a nodeJs app and I need to get the ISP of each client, I did find a free database of ip to ASN but it's in CSV format.
I'm using the official ip2location NPM package (ip2location-nodejs) to retrieve ip data from a BIN database, but the…

Souhail Benlhachemi
- 137
- 5
0
votes
1 answer
How to find out the IP range for a certain country code in python?
Is there a way to figure out the IP ranges for a certain country code without using MaxMind or IP2Location where in both they provide a binary file where one have to check single IP at a time
both source do not provide a way to list the ranges for a…

Weed Cookie
- 579
- 1
- 3
- 11