Search Unity

Ios Ipv6 Bug

Discussion in 'iOS and tvOS' started by dong-yeon, Apr 12, 2019.

  1. dong-yeon

    dong-yeon

    Joined:
    Dec 8, 2015
    Posts:
    5
    When calling the GetHostAddresses in an IPv6 environment, Get Exception System.Net.Dns.Error_11001
    test code
    Dns.GetHostAddresses("ipv6.google.com");

    it's maybe mono bug
    https://github.com/mono/mono/issues/6940

    it's ios device only bug

    i hope fix it.
    thanks

    // test code
    var addresses = Dns.GetHostAddresses("ipv6.google.com");
    foreach (var address in addresses)
    {
    Debug.Log(address.ToString());
    }

    // exception
    SocketException: Could not resolve host 'ipv6.google.com' at System.Net.Dns.Error_11001 (System.String hostName) [0x00000] in <00000000000000000000000000000000>:0 at System.Net.Dns.hostent_to_IPHostEntry (System.String originalHostName, System.String h_name, System.String[] h_aliases, System.String[] h_addrlist) [0x00000] in <00000000000000000000000000000000>:0 at System.Net.Dns.GetHostByName (System.String hostName) [0x00000] in <00000000000000000000000000000000>:0 at System.Net.Dns.GetHostEntry (System.String hostNameOrAddress) [0x00000] in <00000000000000000000000000000000>:0 at System.Net.Dns.GetHostAddresses (System.String hostNameOrAddress) [0x00000] in <00000000000000000000000000000000>:0
     
  2. dong-yeon

    dong-yeon

    Joined:
    Dec 8, 2015
    Posts:
    5
    unity 2018.3.11f1
    il2cpp
     
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Can you submit a bug report to Unity for this issue?
     
  4. dong-yeon

    dong-yeon

    Joined:
    Dec 8, 2015
    Posts:
    5
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Thanks, we will investigate this issue.