In writing a
Java program using RMI, I am having a problem with the code as below:
Naming.lookup("//Honda/Weather");
Honda is the name of the server.
A client program refused to connect to the Server called Honda.
But when I used the code below:
Naming.lookup("//172.16.30.121/Weather");
where 172.16.30.121 is the IP address of Honda, the program work and I am able to connect to the server called Honda.
I am puzzled on why if I used the IP address the program work, but if I used the name "Honda", it will not work.
Can anybody shed some light on it?