Get IP address using Action Script?


Question

Is it possible to get client IP address through Flash (swf) Action Script 3 and then pass it to php file to store it in database?

1
6
5/10/2012 3:37:12 PM

Accepted Answer

No need to do it in flash, just do it on your server in php "$ip=@$REMOTE_ADDR;"

6
3/30/2009 2:54:20 AM

No, the client IP address is not available in ActionScript 3. The recommended approach is to have it reflected by server-side code.

See http://www.actionscript.org/forums/showthread.php3?s=&threadid=20123


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon