Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 我可以从 javascript 中查找主机名的 IP 地址吗?
我的页面 test.html 托管在服务器上。现在,当我从任何计算机访问 test.html 时,test.html 应该只显示托管页面的服务器的 IP 地址,而不是请求计算机的 IP 地址。
有没有办法用 JavaScript 做到这一点?