简体   繁体   English

运行小程序的计算机/浏览器的IP地址是什么?

[英]What is the IP address of computer/browser running applet?

如果我在浏览器中运行经过数字签名的小程序并连接到第三方Web服务器,该Web服务器会使用运行该小程序的计算机/浏览器的IP地址或托管该小程序的IP地址来标识客户端吗?

The applet is running locally, it is just hosted on the server. 小程序在本地运行,仅托管在服务器上。 So the IP address identified will be that of the computer/browser running the applet. 因此,标识的IP地址将是运行小程序的计算机/浏览器的IP地址。

You can't rely on the IP address reported by the applet, it will be the local IP address of the browser's computer, which can be anything at all. 您不能依赖小程序报告的IP地址,它是浏览器计算机的本地IP地址,可以是任何东西。

You also can't rely on the IP address presented at the connection to the server. 您也不能依赖与服务器连接时显示的IP地址。 It will be a valid address, but it's only a gateway address. 这将是有效地址,但仅是网关地址。 Commonly that's the gateway from the applet's LAN to the public internet, but with port forwarding and proxies, it can be almost anywhere. 通常,这是从applet的LAN到公共Internet的网关,但是有了端口转发和代理,它几乎可以在任何地方。

One thing it will NOT be unless software there wants to make it so is the IP address of the server host. 除非那里的软件想要这样做,否则一件事不会是服务器主机的IP地址。

The applet connects to the web server. 小程序连接到Web服务器。 The applet runs in the browser. 小程序在浏览器中运行。 So the Web server will see the TCP-Connection as coming from the browser (or any proxy that the client happens to use). 因此,Web服务器将看到TCP-Connection来自浏览器(或客户端碰巧使用的任何代理)。

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

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