1

Where are IP addresses stored on an Android device? In what location on disk, or otherwise; how are they stored?

JohnyTex
  • 3,323
  • 5
  • 29
  • 52

3 Answers3

1

For statically configured networks (i.e., not DHCP which doesn't store), addresses are stored in /data/misc/wifi/ipconfig.txt, managed by WifiConfigStore class. This is not a public API and is only used from class WifiStateMachine. However, you can find out the format of this file by viewing the source: WifiConfigStore.java.

Paul Ratazzi
  • 6,289
  • 3
  • 38
  • 50
0

Because Android is based on a Linux System, the IPs are stored inside the system. So it's the same way like in Linux ( keyword: ifconifg )

But you can get the IP like shown here: IP details

Community
  • 1
  • 1
mapodev
  • 988
  • 8
  • 14
0

IP addresses on Android are normally stored as an entry in: /data/data/com.android.providers.settings/databases/settings.db

sqlite database.

JohnyTex
  • 3,323
  • 5
  • 29
  • 52