Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Rmi Unicastref on a ipv4/ipv6 system

Thread Tools

Rmi Unicastref on a ipv4/ipv6 system

Posts: n/a
Has anyone been able to get an RMI object to work on ipv6 and ipv4 at
the same time? I have a server, 'middle' which runs ipv4 and ipv6.
When I start up my RMI server on 'middle', the object binds into the
registry and advertises the address "" in the UnicastRef.

When I jump onto my ipv4-only Windows box, I can access the object
just fine. When I switch to my ipv6-only Linux box (not running
anything ipv4!), the RMI client application is able to retrieve the
RMI Server object from the registry on 'middle', but any subsequent
invokation on that RemoteRef fail, because the Remote Reference that
'middle' returned said that the address is "". I was
able to verify this behavior using an ethernet sniffer (tcpdump) on

I switched things around and ran the RMI Server on the ipv6-only box,
and then ran the client on 'middle' and it all worked fine. Since the
RMI Server had started on the ipv6-only server, the only available IP
address was the ipv6 address. Thus, when the RMI client running on
'middle' retrieved the RemoteRef from the ipv6-only box, the RemoteRef
contained the ipv6 address.

So, the big question: how to I get a Remote object to bind in the
registry and make it so that it'll work with ipv4 users and ipv6 uers?
It doesn't seem that a RemoteRef can contain more than one "address" -
and if that's the case, then I guess I'm severely hosed...

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crossplatform (Windows/Linux) RMI System?? Hotlips C++ 0 02-28-2007 08:35 PM
System.Security.SecurityException: Error de solicitud de permiso de tipo System.Net.WebPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089. Luis Esteban Valencia ASP .Net 0 07-14-2005 01:43 PM
Why does java.rmi.Naming not implement interface java.rmi.Registry? Jan Schulze Java 1 03-26-2005 07:45 AM
RMI Vs RMI over IIOP JScoobyCed Java 1 01-28-2005 09:54 AM
RMI, JINI or RMI/IIOP Buu Nguyen Java 1 08-25-2004 11:28 AM