Best way to record users ip address in flash

Hi all

Does anyone know if its possible to get the persons ip address within flash i knwo its possible with php using $_server[‘remote+_address’]; but can somthing like that b done within flash too or is it only php that can do that?

ive been asked to change the controls of the the game so u can control the character only thing is that not sure how i should go about it being based on user ip for loading and saving of controls in the mysql database.
.

this is one leasson for flash+php+mysql

Why would you record user controls based on ip? Many (most?) users will have a dynamic ip that changes day to day. Use a local shared object instead, or base storage of data on a username or other unique attribute.

You may use php get the IP of game player,then flash read the PHP outputing variable