Skip to content

Instantly share code, notes, and snippets.

View mathieugerard's full-sized avatar

Mathieu Gerard mathieugerard

View GitHub Profile
@mathieugerard
mathieugerard / LocalWifiIP.md
Last active September 24, 2023 06:54
Get Local Wifi IP address on iOS and Android

Get Local Wifi IP address on iOS and Android

This Gist provide the function to retrieve the local IP address of the device when connected to the wifi.

iOS

No permission is required from the user to access the information. It uses the getifaddrs method that is not directly part of the public iOS API but it's still perfectly fine to use it and allowed by Apple.

Sources