Google generally recommends not to use IP-location as a way of automatically redirecting users to their preferred version:
To make all of your site's content more crawlable, avoid automatic
redirections based on the user's perceived language. These
redirections could prevent users (and search engines) from viewing all
the versions of your site.