开发者

Spring RMI, connection refused

开发者 https://www.devze.com 2023-03-20 01:04 出处:网络
I\'m deploying Spr开发者_StackOverflow中文版ing based RMI server on one machine(10.11.11.11), and the RMI client running on another machine(10.12.11.12), but once client trying to connect RMI server t

I'm deploying Spr开发者_StackOverflow中文版ing based RMI server on one machine(10.11.11.11), and the RMI client running on another machine(10.12.11.12), but once client trying to connect RMI server then client throw an "Connection refused" exception, and then I tried to telnet to RMI Server at client side but the response is connected.

Both two machines are Linux system and if running on Windows everything is OK.

Do anybody know what am I missing when using Linux.


if you have more than one interface in machine, use "-Djava.rmi.server.hostname=machine_ip" note : this is your exporter interface ip

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号