Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Access problems with RMI and Applets

843793Apr 16 2007 — edited May 29 2007
Hi

I created a Client/Server Application for the internet. It is a game, that I try to create. Everything works fine in the LAN, but when I try to launch it on a root-server, I have problems.
I try to describe my program: All the classes are in the same place (Applet-Class, Server-Classes, etc.).
Server: The Server-Class has some methods, which are available on the Clients, one of them repaints all the components on the clients, so that every client has actual values. I start the server with the rmi-policy argument and the codebase argument.
Client: The Client-Application is an Applet an is placed in the same folder on the root-server. The applet is signed an I run an RMISecurityManager on the server and the applet. All this works, but I get a problem when the methode is called, which should repaint all the clients. The error message is, no access to 192.168.0.102 (which is the internal IP of my ClientComputer).
Ok, I understand, that the Server from the internet has no access to an internal IP adress, but I don't understand, why he tries to use 192.168.0.102??? I mean...the Client connects with the Server (successfully), shoulden't be used this connection for all the data-transfers???

Thx for any hint
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2007
Added on Apr 16 2007
38 comments
506 views