This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes RMI lookup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI lookup" Watch "RMI lookup" New topic
Author

RMI lookup

tariq shadid
Greenhorn

Joined: Jul 31, 2006
Posts: 11
hello there

need help in RMI and I'm really need it

and my problem is :

i want to create the rmi object in client machine , i mean the client machine connect to Internet thorougher ADSL

or maybe in local network ( DNS )

so my problem when i make binding or rebinding to rmi object which ip will use it to make look up to the object

i.e( the local ip or DNS IP OR PROXY IP , i mean if any use command line( ipconfig in windows or ifconfig in linux or unix ) to know what is ip he will got the local IP and if he

use this link

( http://whatismyipaddress.com/) will got another IP (proxy IP )

so how can i connect to the client machine if he have proxy ip and local ip ?? .
so i mean when im make lookup what i have to do
(connect to proxy then to MY Internal (LAN) IP)

IF YES , HOW CAN I MAKE IT
???


and is it like P2P application !!!???
[ September 14, 2006: Message edited by: Bear Bibeault ]
Oricio Ocle
Ranch Hand

Joined: Nov 30, 2004
Posts: 284

Hello
i want to create the rmi object in client machine
...
Do you mean obtain a remote object reference?
ok as i understand you have a RMI server that is accessed by clients inside and outside the LAN.
so my problem when i make binding or rebinding to rmi object which ip will use it to make look up to the object


You rebind the remote object in the server machine pointing to "localhost", as at least rmi registry dont let remote bindings for security reasons.

LAN clients lookup with the server private address.

Internet clients lookup with the gateway public address. For this your network must be properly configured. Your server must be routable from the outside world, so the gateway knows who private machine to forward the incoming request.

and is it like P2P application !!!???




SCJP, OCMJD, OCMJEA
tariq shadid
Greenhorn

Joined: Jul 31, 2006
Posts: 11
hello

no i dont mean like this

lsn man

i have executable JAR file and this file create rmi object ( skeleton )
in the client side

so how can i lookup to this object(skeleton) if the client connect through
LAN NETWORK so he will have porxy ip and LAN IP

???
Oricio Ocle
Ranch Hand

Joined: Nov 30, 2004
Posts: 284

I can't undestand you.
Maybe if you post some code...
tariq shadid
Greenhorn

Joined: Jul 31, 2006
Posts: 11
my project depends on ip address...if a system is using proxy ip address for internet connection..My lan ip is different and internet ip address is differen...By java code i found lan ip ...Is it possible to find the internet proxy ip address using java code...in http://www.haxial.com/whatismyipaddress they have achieved.pLEASE IF ANYBODY IS HAVING THE CODE for finding internet proxy ip address..pLEASE SEND ME
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI lookup
 
Similar Threads
RMI problem with Localhost
help with interface, static counter - RMI?
RMI questions
URGENT : how to connect the database to the GUI