tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Preißer <kpreis...@apache.org>
Subject RE: AW: AW: tomcat-connectors-1.2.39-windows-x86_64-iis does not work
Date Mon, 07 Apr 2014 17:27:34 GMT
Hi Chuck,

> -----Original Message-----
> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> Sent: Monday, April 7, 2014 7:06 PM
> To: Tomcat Users List
> Subject: RE: AW: AW: tomcat-connectors-1.2.39-windows-x86_64-iis does
> not work
> 
> > From: Konstantin Preißer [mailto:kpreisser@apache.org]
> > Subject: RE: AW: AW: tomcat-connectors-1.2.39-windows-x86_64-iis does
> not work
> 
> > I wanted to note that I'm also using the ISAPI Connector 1.2.39 (x64)
> > on a Windows Server 2012 R2, but I did not encounter the reported issue.
> > This is my workers.properties:
> >   # Define 1 real worker using ajp13
> >   worker.list=worker1
> >   # Set properties for worker1 (ajp13)
> >   worker.worker1.type=ajp13
> >   worker.worker1.host=localhost
> >   worker.worker1.port=8019
> 
> > On that system, Tomcat listens on both [::]:8019 and 0.0.0.0:8019, and
> > the ISAPI connector uses 127.0.0.1:8019 to connect to Tomcat. The "hosts"
> > file on this system doesn't contain any entry.
> 
> Any theories on how localhost gets resolved on your system?

Sorry, I don't know how Windows internally resolves "localhost". What I wanted to say is,
that the "hosts" file has not been modified on that system - by default it does not contain
any entries. This seems to have changed since some Windows versions, as e.g. Windows Vista
contains "127.0.0.1       localhost" and " ::1             localhost" by default in its hosts
file, but starting with Windows 7, the hosts file only contains comments by default, with
the hint "localhost name resolution is handled within DNS itself".

I just wrote a small C# program to see how .Net resolves "localhost":

        private static void Main(string[] args) {
            IPAddress[] addresses = Dns.GetHostAddresses("localhost");
            foreach (IPAddress a in addresses) {
                Console.WriteLine(a.ToString());
            }
            
            Console.ReadKey();
        }


When I run it on the server machine, it prints the normal IPv4 and IPv6 loopback addresses:
::1
127.0.0.1


Regards,
Konstantin Preißer


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message