getRequestIP

Permalink 2 users found helpful
Hi - quick question - what object should I be using to get the IP address of the Client who is requesting pages from my C5 web site?

Thanks
Chris

b3rimbau
View Replies:
Mainio replied on at Permalink Reply
Mainio
$r = \Request::getInstance();
$r->getClientIp();
MrKDilkington replied on at Permalink Reply
MrKDilkington
@Mainio

Thank you, I will add this to my notes.