GetLocalIP is a cross-platform plugin that enables your app to retrieve the device's local IP address on both Android and iOS. This utility is ideal for apps that require network information for connectivity, diagnostics, or device identification within a local network.
npm install capacitor-getlocalip
npx cap syncgetLocalIP() => Promise<{ ip: string; }>Get the local IP address of the device
Returns: Promise<{ ip: string; }>