I have a problem while registering the call back object.
I am developing an application in which I use RMI to connect the client with server while client logs in. When client logs in, it registers a call back object to it so that server can communicate with client.
At localhost it works fine and server replies to the client but when I make this application live the object doesnot work.
I use following statement on server while registering the object,
it gives following output
On localhost my IP address is 192.168.1.2 so it might work fine but when working in live condition my IP address should change so that server can call back me.
I have generated stub file of both server and client files.
What I do to get out this?
Thanks in advance
posted 6 years ago
The problem was solved by setting java.rmi.sever.hostname property to the client side and the object is now registering to the server with the true IP address and also giving the response to the client.
But the problem of firewall arises that firewall is not allowing to communicate server to the client while call back. It shows error of "No Route found to the host".
Please help me to eliminate the firewall issue.
Thanks in advance.