locked
SocketException: No such host is known RRS feed

  • Question

  • User280143 posted

    Hi Team,

    Getting this exception in the case of android when I am trying to connect https connection.

    {System.Net.Sockets.SocketException (0x80004005): No such host is known at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x000c8] in /Users/builder/jenkins/workspace/archive-mono/2019-08/android/release/external/corefx/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:65 }

    please help me, it would be great for me!

    Tuesday, July 7, 2020 1:05 PM

Answers

  • User280143 posted

    Thanks @jezh, for your quick response.

    I have fixed it actually issue was on my simulator did not accessing the network data just I have restart it then it's working.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, July 8, 2020 7:07 AM

All replies

  • User371688 posted

    You can try to open your quested url in your android device browser to see if it could open normally.

    We should make sure that the url is correct.

    Besides, make sure the android manifest file has internet permission, just as follows:

     <uses-permission android:name="android.permission.INTERNET" />
    
    Wednesday, July 8, 2020 5:59 AM
  • User280143 posted

    Thanks @jezh, for your quick response.

    I have fixed it actually issue was on my simulator did not accessing the network data just I have restart it then it's working.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Wednesday, July 8, 2020 7:07 AM