使用 java 的有线/无线 LAN 中的 IP 地址
我正在开发一个java服务器客户端应用程序,它可以在有线或无线局域网内的每个OD之间传输文件,我现在的问题是如何检测无线或有线局域网中客户端计算机和服务器计算机的IP地址。底线:如何使用java代码来检测两台计算机之间有线或无线LAN连接中计算机的IP地址。
I am working on a java server-client app that transfers file btw each oda within a wired or wireless LAN, my problem now is how to detect the IP address of the client computer and the server computer in a wireless or wired LAN. Bottom-line: how to i use java code to detect the ip address of a computer in a wired or wireless LAN connection btw two computers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许 jgroups 可以帮助你:http://www.jgroups.org
Maybe jgroups can help you: http://www.jgroups.org