XF 2.1 How to get guest user IP address? \XF::visitor()->getIp(); isn't working

Hi! Please help me, how I can use client Ip-address in templates?
Oh, I'm find it
Code:
{{$xf.app.request.getIp()}}
 
Back
Top Bottom