-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All,
During a recent production deployment (Debian Linux), we added a localhost-only connector like this: <Connector port="8187" protocol="org.apache.coyote.http11.Http11NioProtocol" address="127.0.0.1" secure="true" URIEncoding="UTF-8" executor="tomcatThreadPool" /> (We use secure="true" because we have security-constraints that require it, but we want to avoid the cost of SSL setup when communicating locally). /etc/hosts contains this: 127.0.0.1 localhost # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts ==== end of /etc/hosts ===== When I use netstat to show me what's bound to what, I see this: $ netstat -plan | grep 8187 tcp6 0 0 ::ffff:127.0.0.1:8187 :::* LISTEN 2737/java Also: $ host localhost localhost.chadis.com A [my public ip] I'm using "localhost:8187" as my host:port in my connection URL and everything seems to work. Do I just not know how to read netstat's output (I don't know much about the way Linux does IPv6)? Anyone have any idea why 'host' returns my public IP for 'localhost'? Or, when I use "localhost:8187" (which probably resolves to my public IP), I can establish a connection? Thanks, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk8wHeIACgkQ9CaO5/Lv0PBd5ACeLOlU9y1mdtTrzYRVQqxgK1fy NigAoKeTZ4Rs0caRmq7lsXS6IHj36Ksj =Aupx -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org