Torann / laravel-geoip

Determine the geographical location of website visitors based on their IP addresses.

Home Page:http://lyften.com/projects/laravel-geoip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect location for ip address

akshaymirackle opened this issue · comments

"103.66.96.83" this is Indian IP address, but showing China instead.

Torann\GeoIP\Location Object
(
[attributes:protected] => Array
(
[ip] => 103.66.96.83
[continent_code] => AS
[continent_name] => Asia
[country_code2] => CN
[country_code3] => CHN
[country_name] => China
[country_capital] => Beijing
[state_prov] => Tianjin
[district] =>
[city] =>
[zipcode] =>
[latitude] => 39.10956
[longitude] => 117.22337
[is_eu] =>
[calling_code] => +86
[country_tld] => .cn
[languages] => zh-CN,yue,wuu,dta,ug,za
[country_flag] => https://ipgeolocation.io/static/flags/cn_64.png
[geoname_id] => 6527845
[isp] => Yuanwang Technology (Tianjin) Co. Ltd.
[connection_type] =>
[organization] => Balaji Services
[currency] => Array
(
[code] => CNY
[name] => Yuan Renminbi
[symbol] => ¥
)

    [time_zone] => Array
        (
            [name] => Asia/Shanghai
            [offset] => 8
            [current_time] => 2021-08-06 20:26:21.880+0800
            [current_time_unix] => 1628252781.88
            [is_dst] => 
            [dst_savings] => 0
        )

    [default] => 
)

)

Hi, if you using maxmind geolite db, make sure its updated.