Posted By

sidneydekoning on 10/29/10


Tagged

ip IPv6 adres


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

sexyflash
donaldleegraham


Get the IP Addres in AIR 2.5


 / Published in: ActionScript 3
 

  1. var netInterfaces = NetworkInfo.networkInfo.findInterfaces();
  2. var addresses = netInterfaces[0].addresses;
  3. var userIp = addresses[0].address;
  4. trace(userIp); // Results in ::1 as an IPV6 adres

Report this snippet  

You need to login to post a comment.