Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kohana accessing client ip

I am using kohana 3.2, and i would like to acces client ip from request class, in documentation i can see public static string $client_ip which should contain client ip, now if i try to access it i like so:

Request::$client_ip;

I get: string(3) "::1" it makes no sense at all, what am i doing wrong, or maybe it's impossible to access it?

like image 951
Linas Avatar asked Jul 19 '12 16:07

Linas


1 Answers

You access your script locally, your IPv6 address is ::1

like image 58
Thorsten Avatar answered Sep 28 '22 06:09

Thorsten