How to Solve Socketexception: Failed Host Lookup: 'Www.Xyz.Com' (Os Error: No Address Associated With Hostname, Errno = 7)

How to solve SocketException: Failed host lookup: 'www.xyz.com' (OS Error: No address associated with hostname, errno = 7)

Adding internet permission is not only a solution.


You also have to make sure that you are online whether it is mobile or emulator

  1. Make sure you are online whether it is mobile or emulator

  2. Make sure you have given internet permission in your app's android/app/src/main/AndroidManifest.xml

    <uses-permission android:name="android.permission.INTERNET"/>

OS Error: No address associated with hostname, errno = 7

1 You do have internet permissions in manifest.
2 Internet Off.
3 Url is wrong.

How to solve SocketException: Failed host lookup: 'www.xyz.com' (OS Error: No address associated with hostname, errno = 7)

Adding internet permission is not only a solution.


You also have to make sure that you are online whether it is mobile or emulator

  1. Make sure you are online whether it is mobile or emulator

  2. Make sure you have given internet permission in your app's android/app/src/main/AndroidManifest.xml

    <uses-permission android:name="android.permission.INTERNET"/>



Related Topics



Leave a reply



Submit