如何使用java实现远程桌面
假设如果我们需要访问位于任何其他地方的系统,那么我们如何使用java编程来实现这一点。Ip地址通常用于通过套接字连接两个系统,所以我的问题是我们如何实现这一点不使用 IP 地址。请帮我解决这个问题。我正在寻找类似 teamviewer 的工具的架构。
suppose if we need to access a system which is there in any other place then how can we achieve this using java programming.Ip address will be normally used to connect two systems by means of socket,so my questions is like how can we achieve this without using ip address.Please help me out in this.i am searching for the architecture of teamviewer like tool.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您想抽象出客户端到客户端解决方案的 IP 地址,您需要在某个地方来存储这些 IP 地址。因此,您需要一台服务器来保存以某种方式映射到 IP 地址的密钥。所以你的连接会像这样
或者,如果服务器不想处理流量,它可以返回一个 IP,让客户端相互连接并自行交换数据。
这仅在其中一个客户端可相互访问时才有效,否则您需要第三台计算机在客户端之间路由数据。
If you want to abstract away the IP address of a client to client solution you need somewhere to store those IP addresses. So you need a server that holds those keys that maps to an IP address somehow. So your connection would go like this
Or if the server doesn't want to handle the traffic it could give back an IP to let the clients connect to eachother and exchange data for themselves.
This only works if one of the clients is reachable from eachother, otherwise you need some third computer to route the data between the clients.