You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bi...@americancentury.com on 2001/02/02 19:12:38 UTC
IP & hostname questions
Hello,
I was wondering, how _does_ Tomcat figure out what my IP address is? What if I
have two network cards and two IP address? Does Tomcat take both? I've been
looking through the source (3.2.1) and I've found some places where I think it
could be acquiring it, but I'm not quite sure what the call chain is.
In HttpRequestAdapter, I see
public String getRemoteAddr() {
return socket.getInetAddress().getHostAddress();
}
I can find other classes with calls to get/setHost, get/setInetAddress
get/setRemoteAddr Anyone out there want to give me some suggestions on either
the overall architecture or what classes I should be looking at to find my
answers?
Thank a lot,
/bill