while performing client-server communication various forums, unable perform remote-object's lookup on client machine.
the errors receive connectioexception(noroutetohostexception), , connectexception , someother.
this not want ask. but, main concern how should setup client platform , server platform --- talking networking details --- doubt interferes connection.
my questions :-
how should edit /etc/hosts file on both client-side , server-side? server's ip- 192.168.1.8 & client's ip-192.168.1.100. means, should add system name in both files:
192.168.1.8 server-1 # on server side 192.168.1.100 client-1 # on client side
should edit this? can 1 of possible concerns? want remove doubts left on perform rmi-communication!
also, setting server's hostname property using
system.setproperty("java.rmi.server.hostname",192.168.1.8);
on server side. should same on client-side too?i've read setting classpath while running java program on both server-side client-side. did too,but,again same exceptions. no difference @ all. i've read since java update 6u45, classpaths aren't necessary include! please throw light on too...
if missing something, please enlighten same too. brief idea/link resources preferred.
you don't need of unless have problem. usual problem 1 described in rmi faq #a.1, , editing hosts file of server or setting java.rmi.server.hostname
in server jvm solution that.
'no route host' network connectivity problem, not rmi problem, , not 1 you'll solve code or system property settings.
setting classpath has nothing network problems.
Comments
Post a Comment