RMI generally picks an ip address that
is mapped to your host name.
It then adds it to the object.
Try using the java.rmi.server.hostname
trick explained in the FAQ.
Then figure out why RMI is choosing the wrong
ip address from your host mapping.
I honestly am a network admin moron. Just wanted to get that out in the open. I went into my c:\WINDOWS\system32\drivers\etc directory and found 3 different files that sounded like the hosts file referenced in the FAQ: hosts, hosts.ics, and lmhosts.sam. Which of these is the file i need to modify? Also, what should i name my external ip address in that file? Does it matter what I call it? Where should i be referencing this name i come up with for my external address in my code? I guess I just don't see where this all fits in together. I apologize for this slowness and very much appreciate any time you guys spend on trying to help out...
Well, i added an entry for
<external address> sphincter boy
and added the option
to the run.bat that comes with jboss. Unfortunately, now I can't even run this on my local network! I get this error
javax.naming.CommunicationException. Root exception is java.rmi.ConnectException: Connection refused to host: sphincterboy; nested exception is:
java.net.ConnectException: Connection timed out: connect
So how do I now set up my client to map sphincterboy to my server's ip? Is there a property or properties that can be set on the client that mimics the hosts entry on the server? It would need to be able to be set thru the web start environment to continue to let web start make sense as a delivery mechanism. Thanks again for your help.
For the hostname trick to work,
each network needs to map it to the
correct ip address for that subnet.
Either using dns or host table entries.