开发者

Java RMI - Implementing Local to Implementing Remote

I understand and have coded up some RMI code and it works. I can create a RMIServer object and a RMIClient object and the client can send messages to the server and the server 开发者_运维知识库receives it perfectly.

My question is how do I communicate between two different computers in different parts of the world?


When you connect to the RMI server you provide an IP or name of the machine hosting the server. You will simply provide the IP/name of the RMI server in place of the one you're currently using.


To get your ip, if you have windows go to start ->run-> write cmd. now in the console write ipconfig your ip is ADDRESS IP. Remember, if you have dynamic ip (unless your supplier get you a static ip) this change when restart your pc

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜