简体   繁体   中英

Get website's IP address using Flex 4 AIR app?

How do I get the IP address of a certain website using Flex 4 via an AIR application? I know that this is do-able using ping website.com but how can I replicate the same only this time, using AS3 in Flex 4 and as an AIR application.

You can use the DNSResolver class to look up IP addresses of a domain name. The link is to ActionScript documentation that has an example you can use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM