Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RMI lookup

 
tariq shadid
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 284
Debian Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !!!???


 
tariq shadid
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 284
Debian Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't undestand you.
Maybe if you post some code...
 
tariq shadid
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic