I am using a virtual environment. My machine did not have an entry for its IP address in /etc/hosts I added the IP address with the name returned by the shell command `hostname` I think this probably would be resolved via DNS in a regular envionment...but for now I am set.
Thanks -Jorge -----Original Message----- From: Caldarale, Charles R [mailto:[email protected]] Sent: Tuesday, February 10, 2009 4:34 PM To: Tomcat Users List Subject: RE: Clustering: Session replication > From: Jorge Medina [mailto:[email protected]] > Subject: FW: Clustering: Session replication > > According to the Javadoc, InetAddress.getLocalHost() returns the > loopback address. No, it doesn't; the sentence in question reads: "If the operation is not allowed, an InetAddress representing the loopback address is returned." You seem to have ignored the first clause in the sentence. InetAddress.getLocalHost().getHostAddress() gets me an external IP address on every system I can find. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
