amazon web services - Laravel 5 on EC2 returns the wrong IP -


i'm working on ec2 in vpc using laravel 5. when using geoip::getlocation($_server["remote_addr"]) 73.251.135.152 ip address, when ask google ipv6 of 2601:5cb:c200:bf18:10ce:8647:1198:8e7d totally messing maxmind geo cities 73.251.135.152 unknown location.

as far can tell it's on ec2 , can not reproduce anywhere else. have solution this?

(     [ip] => 73.251.135.152     [isocode] =>     [country] => united states     [city] =>      [state] =>      [postal_code] =>      [lat] => 38     [lon] => -97     [timezone] =>      [continent] => na     [default] =>  ) 


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -