Skip to content

Flaxbin Digital

Mobile apps development

Recent Posts

  • New chat application for Android is available
  • New VideoChat Application Running
  • VideoChat Application (AS3) almost done!
  • Initializing Camera (AS3)
  • Get IP in Adobe AIR 2.5

Recent Comments

    Archives

    • February 2015
    • June 2011
    • May 2011
    • November 2010
    • October 2010
    • July 2010
    • May 2010

    Categories

    • ActionScript
    • AIR
    • Applications
    • General

    Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org

    snippet

    Get IP in Adobe AIR 2.5

    November 3, 2010 Adminactionscript, adobe, AIR, air2.5, api, as2, as3, as3.0, code, flash, flashcom, flex, fms, red5, snippet, source

    A short snippet of how to get user’s IP on AIR 2.5

    [code]
    var netInterfaces = NetworkInfo.networkInfo.findInterfaces();
    var addresses = netInterfaces[0].addresses;
    var userIP = addresses[0].address; // user IP
    [/code]

    Get IP in Adobe AIR 2.5
    Proudly powered by WordPress | Theme: Minnow by WordPress.com.