tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jorge Medina" <>
Subject RE: Clustering: Session replication
Date Tue, 10 Feb 2009 22:09:32 GMT
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
I think this probably would be resolved via DNS in a regular
envionment...but for now I am set.



-----Original Message-----
From: Caldarale, Charles R [] 
Sent: Tuesday, February 10, 2009 4:34 PM
To: Tomcat Users List
Subject: RE: Clustering: Session replication

> From: Jorge Medina []
> 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

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:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message