my dog learned polymorphism
The moose likes Sockets and Internet Protocols and the fly likes Using Internet to communicate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Using Internet to communicate" Watch "Using Internet to communicate" New topic

Using Internet to communicate

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi All,

First of all, I would like to convey my apology for not using proper subject line. I was not sure what should I call my doubt . I have this query. Long time ago when I was a student I did a chat server project where multi users can do chatting using RMI technology. If I remembered it correctly, we had our machines connected through LAN and we were able to chat over LAN. I was wondering how can I improve this application to work over Internet. I mean users should be able to chat over Internet. One user would be logging into my the application which is posted some where in a remote machine and he should be able to communicate with others via Internet rather than over LAN. To be more precise, how do people play games over Internet.

I'm sure that my question is very vague as I'm not able to write it down what exactly my brain is thinking. If anyone could understand what I'm looking at, please give me some information on this.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
RMI isn't restricted to LANs; it works just as well over the internet. Depending on how much control you have over the server, it may not allow RMI traffic, though. In that case you could still use it by tunneling it through HTTP (and you'd need a servlet container running on the server). That technique is described here for applets, but it would be similar for applications.
I agree. Here's the link:
subject: Using Internet to communicate
It's not a secret anymore!