# How to find domain name

**URL:** <https://forum.kirupa.com/t/how-to-find-domain-name/264240>\
**Category:** flash\
**Created:** [June 24, 2008, 10:45am UTC](https://forum.kirupa.com/t/how-to-find-domain-name/264240 "2008-06-24T10:45:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sivanathan](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@Sivanathan](https://forum.kirupa.com/u/Sivanathan)\
**Post date:** [June 24, 2008, 10:45am UTC](https://forum.kirupa.com/t/how-to-find-domain-name/264240/1 "2008-06-24T10:45:17Z")

</div>

Hi,

Once a swf is loaded on a server,can any variable inside can tell me the domain name and the directory in which it is present.

Thanks  
Sivanathan

---

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 24, 2008, 10:48am UTC](https://forum.kirupa.com/t/how-to-find-domain-name/264240/2 "2008-06-24T10:48:00Z")

</div>

erm look at the forums, someone posted this code…

he couldn’t get it to work, but he posted it lol
