Java 中的网络/在线应用程序
使用 J2SE,我尝试使用 java.net.* 制作一个 LAN 应用程序,并且它运行得很好。我相信这与在线应用程序的概念非常相似(如果不是相同)。
我应该使用什么包或类来开发在线应用程序?我需要静态 IP 地址吗?欢迎提出意见、链接和教程。
Using J2SE, I tried making a LAN application using java.net.*, and it worked perfectly. I believe it's very similar (if not the same) concept to be applied for online applications.
What package(s) or classes should I use to develop an online application? do I need a static IP address? Opinions, links and tutorials are welcomed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
基本上,在 Internet 上运行的应用程序与在 LAN 上运行的应用程序完全相同。有几点需要记住:
Basically an application that works on the internet works exactly the same as one that works on a LAN. There are just a few points to keep in mind:
如果在线应用条件差异很大,则必须绕过对等双方的 NAT 和防火墙。
我建议您浏览 JXTA。
In case of online applications conditions are lot much different, you have to bypass NAT and Firewall on both sides of peer.
I recommend you to go through JXTA.