Expose public IP and geolocation for mobile devices
customer-eponym: Slack thread: https://fleetdm.slack.com/archives/C04QDDZNQ2H/p1753799402457749
-
@noahtalerman: User requested this because managing geographically distributed iOS devices (like kiosks) requires location-aware configuration.
eponymwants to be able to lock iOS/iPadOS (kiosk) devices in single app mode with a Safari URL that shows a map of the office.- @noahtalerman: In the interim IT admins can create a unique team for each location.
- @noahtalerman: Eventually Fleet could collect and expose iOS/iPadOS devices public IP, private IP, and geolocation data. Fleet could also add the ability to create labels based on location. This way, the IT admin can deploy location specific configuration profiles.
Moved the original request:
Problem
It is not currently possible to determine an iOS device's physical location automatically. This makes it difficult to manage devices, such as kiosks, that are deployed across multiple offices or locations. We need a way to apply location-specific configurations (like Wi-Fi profiles or app installations) without manual intervention. For example, a kiosk moved from a New York office to a San Francisco office should automatically receive the appropriate profiles for its new location.
A similar request has been made by other users in the Jamf Nation community, highlighting the need for IP address reporting for better device scoping and troubleshooting in large environments.
What have you tried?
I have reviewed the available device properties for iOS in Fleet and found that there is no field for public IP address or geolocation. While Fleet's audit logs capture the public IP of a user logging in, this information is not available for enrolled devices. The current data does not allow for the creation of policies or profiles that are conditional on a device's location.
Potential solutions
The ideal solution would be to expose the public IP address and geolocation (latitude and longitude) of enrolled iOS devices. This data should be available in the device's details page and as queryable attributes for policies.
This would involve:
- Periodically collecting the public IP address and location data from the device.
- Storing this information as new columns in the
hoststable (e.g.,public_ip_address,latitude,longitude). - Displaying the Public IP and a map with the device's location on the host details page.
Other MDM solutions have implemented similar features, where the device's location is determined by its OS-level location services or the public IP address from the ISP.
What is the expected workflow as a result of your proposal?
- An administrator enrolls an iOS device in Fleet.
- Fleet automatically collects and regularly updates the device's public IP address and geolocation.
- The administrator can view the device's last known public IP and location on the host details page.
- The administrator can create a policy with a query that targets devices based on their location. For example:
SELECT * FROM hosts WHERE public_ip_address LIKE '198.51.100.%'orSELECT * FROM hosts WHERE latitude BETWEEN 40.0 AND 41.0. - Based on this policy, a location-specific profile is automatically applied to the device (e.g., office Wi-Fi, local printer configurations, or region-specific app installations).
- If a device moves to a new location, Fleet detects the change in public IP/geolocation, and the device automatically receives the correct profiles for the new location.
Eventually Fleet could collect and expose iOS/iPadOS devices public IP, private IP, and geolocation data
Should also include Android.
Hey @georgekarrv - Tagging this as an activation blocker for customer-rosner's BYOD deployment. I'd like to try and get this in v5.1.0 if that is doable
Hey @pintomi1989 , George is a bit busy this week with interviews so I can take this and track it with a user story. We can prioritize this for 5.1.0 as well.