expo-network public IP address

Please provide the following:

  1. SDK Version: 37.0.1
  2. Platforms(Android/iOS/web/all): iOS

I am using expo-network and when I call the Network.getIpAddressAsync() method in my standalone app I get either or a private IP address in the 192.168.x.x range.

What is the way to get the public IP address?
For example, I use Sentry in the app and on their reports I always see a public address logged.

1 Like

Did you find any solution for this?

Not with expo.
Just used react-native-ipify instead
and seems to work ok

I also finally settled down with ipfiy

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.