1 Reply Latest reply on Mar 29, 2010 11:42 PM by rkewlani

    How to get static IP address in adobe 2.0 beta ?

    Flex3Noobler Level 1

      Actually I am trying to get the static IP address as soon as the

      internet is connected .How to get the static IP address from air application ?

       

       

       

       

       

      Regards,

      Rahul.

        • 1. Re: How to get static IP address in adobe 2.0 beta ?
          rkewlani Level 2

          Try this (you need AIR 2 SDK):

           

          var interfaces:Vector.<NetworkInterface> = new Vector.<NetworkInterface>();
          interfaces =  NetworkInfo.networkInfo.findInterfaces()


          for each (var netf:NetworkInterface in interfaces)
          {               

                                var addresses:Vector.<InterfaceAddress> = netf.addresses;
                                for each(var interfaceAddress:InterfaceAddress in addresses)
                                                   trace(interfaceAddress.address);

          }

          1 person found this helpful