Local IP addresses and DNS servers
Reads the phone's LAN addresses and DNS servers; Android 17 adds a local network permission.
In one line
Can see your phone's home network address and DNS servers, with limits in Android 17
Reads the phone's LAN addresses and DNS servers; Android 17 adds a local network permission.
LAN IP and DNS often reveal the router and network type; local network access also lets apps scan other devices at home (50 Ways to Leak Your Data).
What it can and can't do
What the user does: Nothing, or you tap Allow when the app asks to find devices on your network
It can
- See the phone's own private network address
- List the DNS servers the phone uses
- Scan or talk to home devices on Android 16 and older
- Talk to local devices on iPhone after you approve
It cannot
- Scan your home network on Android 17 without Local network permission
- Talk to local devices on iPhone if you decline
- See your router password
- Identify other devices without the permission
How it differs between platforms: Android 17 adds a permission for local network traffic. iPhone asks since iOS 14.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Partial | Partial |
| First version | Android 1.0 (API 1) | iOS 14.0 |
| Permission or entitlement | ACCESS_LOCAL_NETWORK (Android 17, API 37) for LAN traffic; INTERNET for the rest | prompt |
| Protection level | dangerous | prompt |
| How access is granted | prompt | none |
| What the user sees | Not listed | Not listed |
| How long it lasts | Until revoked | Settings > Privacy > Local Network |
| How to take it back | Settings > Apps > Permissions | App Review 5.1.1 |
| Store policy | Play: policy | None listed |
| API | NetworkInterface.getNetworkInterfaces(), LinkProperties.getDnsServers() | Own address readable with no prompt; talking to LAN devices prompts (iOS 14) |
| Notes | LAN scanning is restricted in Android 17 via a runtime permission | Until revoked |
Data you get
What comes back: Addresses, DNS
Shape: list
How often: On change
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
addresses | list | IP | 1 to 4 | exact |
Technical limits
- Own address visible with no prompt
The story
What it is
An app can see the addresses of your phone and your router on your home network.
For you
You do not see it. Apps use it to find a TV to cast to or a printer on your Wi-Fi. It can also reveal the type of router and map your home devices.
For makers
Makers need it to connect to smart speakers, TVs and printers. It also lets an app learn what is in your house. Researchers found apps that quietly scanned local devices to build a profile.
Where you see it
| Type | Example | Apps |
|---|---|---|
| media | A video app finds your TV on Wi-Fi so you can cast a show from your phone. | YouTube, Netflix |
| smart-home | A smart home app discovers lights and speakers on the same network. | Google Home, Philips Hue |
| games | A local multiplayer game finds a friend's phone on the same Wi-Fi for a party game. | None named |
| music | A music app finds speakers around the house and plays on them. | Sonos, Spotify |
| ads | An ad kit lists devices on your network and ties them to your phone. | None named |
| security | A security app scans your network to find an unknown camera. | Fing |
Risks
- Maps your home devices
- Hidden scanning
Android and iPhone in short
- Android: Android 17 adds a local network permission, so apps will have to ask first.
- iPhone: iPhone has asked for local network permission since iOS 14, and shows a prompt the first time.
What the platform says
- Apple: Local network privacy. Apple asks permission before apps can find and talk to devices on your home network.
Good uses and abuse
Legitimate uses
- Smart home, casting
Known abuse
- Map home devices to a person
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 3 of 5 | How revealing the data is |
| Utility | 2 of 5 | How useful it is to honest apps |
| Friction | 2 of 5 | How much the user has to do |
| Fingerprint bits | 3 | Rough identifying entropy, when known |
History
- 2020-09, iPhone iOS 14: Local Network prompt added
- 2026-06, Android 17 (API 37): ACCESS_LOCAL_NETWORK runtime permission
Related capabilities
Related
- Public IP address. Can't avoid showing your public address to any server it contacts, which hints at a city
Same idea on the web
- WebRTC ICE host candidates (mDNS). Can try to find your device's home network address, but browsers now hide it
Sources
- Android: Local network permission
- Android 17 behavior changes
- Apple Support: Control access to Wi-Fi information and Private Wi-Fi addresses
- Reardon et al.: 50 Ways to Leak Your Data (USENIX Security 2019)
How well checked: Based on official documentation.