What port is used by Java RMI connection?(Java RMI 连接使用什么端口?)
问题描述
我可以知道 Java RMI 连接使用哪个端口吗?
May I know what port is used by Java RMI connection?
如果我想使用 RMI 连接将 Java 客户端应用程序连接到 Java 服务器应用程序,我需要在服务器计算机上打开什么端口,以便客户端应用程序可以连接到它?
If I want to connect a Java client application to a Java server application using RMI connection, what port I need to open at the server machine so that the client application can connect to it?
我想在服务器机器上设置防火墙,但不知道应该打开哪个端口.
I want to set up a firewall in the server machine but I don't know which port I should open.
推荐答案
RMI 通常不会在防火墙上工作,因为它使用不可预测的端口(它从 1099 开始,然后使用随机端口运行).
RMI generally won't work over a firewall, since it uses unpredictable ports (it starts off on 1099, and then runs off with a random port after that).
在这些情况下,您通常需要借助 HTTP 上的隧道 RMI,这已经很好地描述了 这里.
In these situations, you generally need to resort to tunnelling RMI over HTTP, which is described well here.
这篇关于Java RMI 连接使用什么端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Java RMI 连接使用什么端口?


- 将 Java Swing 桌面应用程序国际化的最佳实践是什么? 2022-01-01
- Eclipse 的最佳 XML 编辑器 2022-01-01
- 获取数字的最后一位 2022-01-01
- 如何使 JFrame 背景和 JPanel 透明且仅显示图像 2022-01-01
- java.lang.IllegalStateException:Bean 名称“类别"的 BindingResult 和普通目标对象都不能用作请求属性 2022-01-01
- 在 Java 中,如何将 String 转换为 char 或将 char 转换 2022-01-01
- 转换 ldap 日期 2022-01-01
- 未找到/usr/local/lib 中的库 2022-01-01
- 如何指定 CORS 的响应标头? 2022-01-01
- GC_FOR_ALLOC 是否更“严重"?在调查内存使用情况时? 2022-01-01