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 连接使用什么端口?
基础教程推荐
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
