# Retrieving server address

**URL:** <https://forum.kirupa.com/t/retrieving-server-address/252773>\
**Category:** Uncategorized\
**Created:** [February 23, 2008, 9:15am UTC](https://forum.kirupa.com/t/retrieving-server-address/252773 "2008-02-23T09:15:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafnews](https://avatars.discourse-cdn.com/v4/letter/r/f17d59/32.png) [@rafnews](https://forum.kirupa.com/u/rafnews)\
**Post date:** [February 23, 2008, 9:15am UTC](https://forum.kirupa.com/t/retrieving-server-address/252773/1 "2008-02-23T09:15:25Z")

</div>

Hi,

as i work on different server, i would like to be sure that my swf file works everywhere without changing AS3 line code.

for that i would like to retrieve the server address.  
How can i do that in AS3 ?

i mean once my server is [http://192.150.25.30](http://192.150.25.30), once it’s [http://www.mywebsite.com](http://www.mywebsite.com) and once it’s [http://10.106.45.32](http://10.106.45.32)

thanks a lot,

A
