A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: IP Address

  1. #1
    Member
    Join Date
    Jul 2008
    Posts
    40

    IP Address

    Hello,

    Is there any way in AIR to find my local IP address? (not 127.0.0.1)

    please let me know if this is impossible.

    Thanks!

    -Jake

  2. #2
    Senior Member dudeqwerty's Avatar
    Join Date
    Mar 2005
    Location
    Bosnia
    Posts
    1,626
    I doubt you can do it directly from flash, but you can set up a simple php script which would look like this:
    PHP Code:
    <?php
    echo $_SERVER['REMOTE_ADDR'];
    ?>
    Then call the script from flash and get the return value. For it to get your real IP address you will have to stick the script and the movie on a server then access the flash movie from there.

    Not the best solution, but I don't think you have much choice.
    New sig soon

  3. #3
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    im pretty sure you can in flash itself

    its like System. something

    also theres sites that tell you your local and external IP

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center