简体   繁体   English

使用Flex 4 AIR应用程序获取网站的IP地址?

[英]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? 如何通过AIR应用程序使用Flex 4获取某个网站的IP地址? 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. 我知道可以使用ping website.com做到这一点,但是这次我只能使用Flex 4中的AS3和AIR应用程序来复制相同的内容。

You can use the DNSResolver class to look up IP addresses of a domain name. 您可以使用DNSResolver类来查找域名的IP地址。 The link is to ActionScript documentation that has an example you can use. 链接指向具有示例的ActionScript文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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