Get the IP Addres in AIR 2.5

/ Published in: ActionScript 3
Save to your folder(s)

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.