/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var netInterfaces = NetworkInfo.networkInfo.findInterfaces(); var addresses = netInterfaces[0].addresses; var userIp = addresses[0].address; trace(userIp); // Results in ::1 as an IPV6 adres