I want to store the user's IP address in a Joomla 3.5 component; with 2.5, I did a
$ip = JRequest::getVar('REMOTE_ADDR', '', 'SERVER');
Which is the most efficient way to get the IP address from a client using the JInput class, since JRequest is deprecated?