简体   繁体   English

javascript:读取封包信息

[英]javascript: read packet information

I am not sure if this is possible. 我不确定这是否可能。 Essentially I want to run javascript. 本质上,我想运行javascript。 While I am running javascript code on the client I would like to send an ajax request to my server to do some stuff and then send the information back to the client. 当我在客户端上运行javascript代码时,我想向我的服务器发送ajax请求以执行一些操作,然后将信息发送回客户端。 When this is sent back I am wondering if it is possible for javascript (or jquery) to read the source ip and destination ip address that this ajax response came from? 当这被发送回时,我想知道javascript(或jquery)是否有可能读取此ajax响应来自的源ip和目标ip地址?

由于服务器已经了解所有信息,因此将该信息作为json的一部分发送到响应中。

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

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