Java RMI连接使用什么端口? [英] What port is used by Java RMI connection?

查看:683
本文介绍了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.

谢谢。

推荐答案

将不能在防火墙上工作,因为它使用不可预知的端口(它从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连接使用什么端口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆