PDA

View Full Version : getting the IP address


irf2k
01-14-2007, 05:19 AM
is there any way in flash of determining the users IP Address? Not the local network address assigned by a router, but the actual IP address assigned by the user's ISP.

jpea
01-14-2007, 08:24 PM
no, it'll have to be retrieved from a scripting language and then fed into flash. Here's a PHP version of how to get it. You could then use javascript or just format the php echo in this example to feed in as a txt file or xml. <?php
$domain = GetHostByName($REMOTE_ADDR);
echo $domain;
?>