如何使用java实现远程桌面

发布于 2024-10-07 07:56:07 字数 132 浏览 0 评论 0原文

假设如果我们需要访问位于任何其他地方的系统,那么我们如何使用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 技术交流群。

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

发布评论

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

评论(1

小耗子 2024-10-14 07:56:07

如果您想抽象出客户端到客户端解决方案的 IP 地址,您需要在某个地方来存储这些 IP 地址。因此,您需要一台服务器来保存以某种方式映射到 IP 地址的密钥。所以你的连接会像这样

客户端-服务器-客户端

或者,如果服务器不想处理流量,它可以返回一个 IP,让客户端相互连接并自行交换数据。

  • 客户端连接到服务器
  • client2 询问 client1 有什么 IP 地址
    • 这可以通过某种密钥来实现
  • 服务器将客户端1的IP地址发送给客户端2
  • client2 尝试连接到该 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

client - server - client

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.

  • client's connects to server
  • client2 asks what ip address client1 has
    • This could be achieved with a key of somekind for instance
  • server sends ip address of client1 to client2
  • client2 tries to connect to the ip address

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.

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