从客户端浏览器确定域的 IP#

发布于 2024-08-26 07:16:05 字数 194 浏览 2 评论 0原文

大家好,

我非常想从客户端脚本确定域的 IP#。

它用于测试应用程序,以确定某个域是否设置为 QA 地址,而不是 .测试机器将设置其主机文件以将域解析为 QA 地址。

从服务器进行 Ping 没有帮助,因为服务器正在获取公共 DNS 地址。

这在 JavaScript 中可能吗?也许Flash可以做到这一点?

Greetings all,

I would very much like to determine the IP# of a domain from client script.

It's for use in a testing application to determine whether or not a certain domain is set to a QA address as opposed to the address live on the . The testing machine will have it's host file set to resolve a domain to the QA address.

Pinging from the server won't help since the server is getting the public DNS address.

Is this possible in JavaScript? Maybe a Flash could do the trick?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独自←快乐 2024-09-02 07:16:05

查看智能 IP Api。似乎可以完成您想要的一切,并且有一些简单的教程。

Have a look at Smart IP Api. Seems to do everything you're looking for and has some simple tutorials.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文