Search Unity

  1. Calling all beginners! Join the FPS Beginners Mods Challenge until December 13.
    Dismiss Notice
  2. It's Cyber Week at the Asset Store!
    Dismiss Notice

System.Net.Dns.GetHostAddresses() return a error ip in NAT64 network when used .net4.6

Discussion in 'Editor & General Support' started by WitLau1990, Jan 3, 2018.

  1. WitLau1990


    Nov 30, 2017
    here's the detial:
    1.use mac to create a NAT64 network.
    2.chose .net4.6 runtime.
    3.use System.Net.Dns.GetHostAddresses("") and print every ip. it'll print ipv4 address.
    4.chose .net3.5 runtime.
    5.try GetHostAddresses again, it'll print ipv6 address.
    6.this issues cause socket cannot connected in NAT64 network when use .net4.6 runtime.
    7.found in 2017.2.0f3, 2017.2.1f1,2017.3.0f3