Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

w2K Client introspective  RSS feed

 
John Kurtz
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
I have an introspective rmi w2k client that refuses to look beyond its own borders to seek the remote server on the network. Regardless of the naming look up command string, it always throws the same error message:
java.rmi.ConnectException: Connection refused to host: xxxx.xx.xxx.xxx; nested exception is:
java.net.ConnectException: Connection refused: connect
where xxxx.xx.xxx.xxx = ip of my client.
The server is running and listening, along with being visible from my client.
My code functions if the server and client are on the same box, but fails when I try to extend this over a network.
I have installed java sdk 1.4.2 on both client and server. There is no security policy as mandated by the specification.
I am hoping this is either a configuration issue or weird windows bug. In either case any help or link to documentation would be appreciated.
thank you in advance.
Very Truly Yours
John L Kurtz
 
John Kurtz
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:
I fixed the problem using two steps:
1. Add to the C:\WINDOWS\system32\drivers\etc\Hosts file:
127.0.0.1 localhost
xxx.xx.xxx.xxx kurtzmachinename.mydomain.com
2. When providing the naming lookup location, use the ip address
remoteDBInterface = (RemoteDBInterface) Naming.lookup("rmi://yyy.yy.yy.yyy/myServername");
where yyy.yy.yy.yyy is the location of the server & myservername is the name of my remote server
My previous introspective client now has expanded its world view to include other computers and has become more tolerant of those with differing views and operating systems. If it were only so easy with people.
Again, thanks to the moose bunch for providing this forum and to all those who contribute
Very Truly Yours,
John L Kurtz
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!