Questions tagged [ip2location]

31 questions
0
votes
1 answer

Error converting IP number to IP address from ip2location database?

I have downloaded ip2location database in csv format and reading 1st column data and converting IP number into IP address using below code as suggested in ip2location FAQ. Sample CSV Data: function Convert-NumbetToIP { param( …
Naveen Kumar
  • 1,266
  • 1
  • 21
  • 50
0
votes
0 answers

Not sure of the correct use IP2Location database

I've used:- $db = new \IP2Location\Database('./database/IP2LOCATION-LITE-DB3.IPV6.BIN', \IP2Location\Database::FILE_IO); it seems to work OK. IP2 docs. says "Class Database, Expects 2 input parameters" Full path of IP2Location BIN data file. --…
DonnyDave
  • 1
  • 1
0
votes
1 answer

IP2Location suggesting to use DECIMAL(39, 0) for IPs

I'd like to store ip2location database in a postgres database. Guide on ip2location website suggests to store IP addresses that specify the range (ip_from and ip_to) in columns of type DECIMAL(39, 0). I would have expected this to be of type…
some-user
  • 3,888
  • 5
  • 19
  • 43
0
votes
1 answer

ip2location always prints "Invalid Database Path" - How to call their database file?

In order to get 2 letters of country from IP Address, I was advised to use this bin database https://lite.ip2location.com/database-ip-country-region-city But wherever I place their database file, I always get this error message: Invalid Database…
compliance
  • 365
  • 7
  • 23
0
votes
0 answers

Python post data params not working in the requests method of post

i've write a code to do crawl a page from doing post requests but still not working and i think the problem is from the data variable for sending post, i tried manually changing values of the request in http live header it works to grap the json…
0
votes
1 answer

TOR IP confustion Luxembourg or Kentucky or Arizona?

I tried my web site with TOR. I the IP I got was 104.244.73.13 whatismyipaddress.com says this IP coming from Lebanon from Kentucky United States. It also calls it "Hostname: luxembourgtorexit1". www.ip2location.com says that this IP coming from…
Yevgeniy Afanasyev
  • 37,872
  • 26
  • 173
  • 191
0
votes
0 answers

Converting IP2LocationRecord to Pandas.DataFrame

Is there a way to use IP2Location database.get_all() and convert the results into a Pandas DataFrame? I am really lost and confused as to how to do it. I have gotten an error AttributeError: 'IP2LocationRecord' object has no attribute 'values'. The…
0
votes
3 answers

How to download IP2Location database with curl

I'm trying to download a database from IP2Location using the curl command they provide. I am registered so I have a valid token. The command they give is curl -o {LOCAL_FILE_NAME}…
user3052443
  • 758
  • 1
  • 7
  • 22
0
votes
1 answer

Is it possible to update IP2Location db?

I want to update Ip2Location DB and add rows or change existing rows, is it possible? if so which package allows it? Thanks.
0
votes
1 answer

Set URL Same Page on IP2Location redirect

I'm going to use Redirect Visitors by Country, I use IP2LOCATION This is my code: require_once('vendor/geoplugin.class.php'); $geoplugin = new geoPlugin(); $geoplugin->locate(); $var_country_code = $geoplugin->countryCode; if ($var_country_code ==…
Amin
  • 414
  • 1
  • 11
  • 23
0
votes
1 answer

Choosing a free geolocation database

We are looking for a free (or not so expensive) downloadable geolocation database (not the online service). Would like to get following information: 1. IP -> Country 2. IP -> City 3. IP -> Connection Speed 4. Lat/Long -> City I found many online…
mesibo
  • 3,970
  • 6
  • 25
  • 43
0
votes
1 answer

IP2Location + Netmiko to SSH to VM's to MTR and print results (If, elif, else statements issues) PYTHON3

Im new on asking a question, always reading answers to improve my codes but never asked, so this is my first time here. Im trying to make a simple scenario implementing some network automation. Scenario: I Have 3 VM's (1st is in Argentina, 2nd is in…
0
votes
3 answers

FreeGeoIP.net Webservice - Is the Service Trustworthy?

I was evaluating the Free Geo IP Webservice provided by FreeGeoIP.net for one of my Enterprise Clients. They are looking for a 'free' solution if available, because in terms of volume, their need is small. A major question is given the highest…
sribasu
  • 680
  • 2
  • 6
  • 24
0
votes
0 answers

nginx with ip2location - invalid or empty results

I have successfully installed ip2locations nginx module. I have purchased the country library, however I get alot of responses that are either: - or INVALID IPV4 ADDRESS Is there something I can do to fix this issue? I have the dns through…
Philip
  • 6,827
  • 13
  • 75
  • 104
-1
votes
1 answer

How to get IP addresses from ip2location database?

I have downloaded IP2Proxy™ LITE database in csv format, below is the data in it could anybody please help me how to read the ip addresses using python or powershell as it seems in plain number. Also please explain what does 1st to column…
Naveen Kumar
  • 1,266
  • 1
  • 21
  • 50