That “IP lookup” feature itself is not unique to Discourse, you can simply copy/paste the IP address and use a third party IP location tool.
That said, it would be good to have a mechanism similar to the email address for the IP address, where it is hidden by default and has a “Show” button that logs the action.
Moved this to Contribute > Feature