# Getting ip with php and showing it in flash

**URL:** <https://forum.kirupa.com/t/getting-ip-with-php-and-showing-it-in-flash/207508>\
**Category:** Uncategorized\
**Created:** [November 18, 2006, 10:43am UTC](https://forum.kirupa.com/t/getting-ip-with-php-and-showing-it-in-flash/207508 "2006-11-18T10:43:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ekoul](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@ekoul](https://forum.kirupa.com/u/ekoul)\
**Post date:** [November 18, 2006, 10:43am UTC](https://forum.kirupa.com/t/getting-ip-with-php-and-showing-it-in-flash/207508/1 "2006-11-18T10:43:19Z")

</div>

Hi there,  
I have this question regarding a flash movie i m trying to make for uni…

basicaly, i have this simple php script that retrieves the clients ip address and turns it into a variable that can be recognized by flash…

```php
<?
$ip = getenv('REMOTE_ADDR'); //~ get ip address
$ip = "&ip=".$ip."&"; //~ make it a flashable variable
echo $ip; 
?> 

```

however… as i m completely new to actionscripting and all things flash… i have no clue on how to get the ip to show in a text box inside the flash movie…

if someone could give me a hint or a pointer to a tutorial or something i would greatly appreciate it!

regards,  
Evan
