Server catch usage

Yes, I'm trying to send an email which contains the username posted from the form (not the password they tried) and some IP information so I know roughly where the attempt was from.

<p>Someone has attempted to log into your admin area.</p><p>Email: {{$_POST.username}}<br>IP Address: {{$_SERVER.REMOTE_ADDR}}<br>Location: {{apiResolveIP.data.city}}, {{apiResolveIP.data.zip}}<br>Country: {{apiResolveIP.data.country_name}} ({{apiResolveIP.data.country_code}})</p>

See this for how to convert the IP address into more meaningful info: