Create a plugin or open system\Helpers\Form\Address.php
Find
if ( isset( $_SERVER['HTTP_ACCEPT_LANGUAGE'] ) )
Add above
try
{
$location = \IPS\GeoLocation::getByIp(\IPS\Request::i()->ipAddress());
if (\in_array($location->country, \IPS\GeoLocation::$countries))
{
return $location->country;
}
}
catch (\Exception $e) {}