• Post Reply Bookmark Topic Watch Topic
  • New Topic

why can't I run rmi server on linux  RSS feed

 
ma la
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,
This question realy confused me for lone time. I am following the sun's hello example. My server locate on a linux box,and I find that I can get the remote object, but once I call sayhello it results in a exception: Connection refused to host: 127.0.0.1
But if i run the server on win2000, everything runs smoothly. Can anybody tell the reason. thanks
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ma -
You should try to connect through the IP address of the NIC; localhost is a loopback that doesn't connect to the network. That might resolve it.
------------------
Michael Ernest, co-author of: The Complete Java 2 Certification Study Guide
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!