jeudi 20 août 2015

Grab public IP address using Laravel

My current IP is : 24.62.137.161

and when I use

$ip = $request->getClientIp(); dd($ip);

I keep getting ::1

How can I grab 24.62.137.161 ? I'm not sure if what I'm trying to do if possible.

Any hints / suggestion will be much appreciated.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1TWC0MB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire