Op 23-11-2012 23:00, André Warnier schreef:
Zorro wrote:
Op 23-11-2012 22:04, André Warnier schreef:
Zorro wrote:
Op 23-11-2012 20:06, Christopher Schultz schreef:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Zorro,
On 11/22/12 5:07 PM, Zorro wrote:
Hi,
I tried to use the Apache Tomcat Native Library 1.1.24 using APR
version 1.4.6 with my Tomcat 7.0.32 server but after installing it
I cannot connect over ipv4.
Using Tomcat with the Native Library on Fedora 14 everything starts
up fine. However a telnet 127.0.0.1 80 gives a 'Connection
refused'. But with a telnet ::1 80 I can connect to Tomcat!
Using the http-bio-80 connector I can connect to Tomcat over ipv4
as well over ipv6. Both telnet 127.0.0.1 80 and telnet ::1 80 do
connect to Tomcat.
Is there a way to use the Apache Tomcat Native Library also for
ipv4 connections?
Try setting address="127.0.0.1" in your <Connector>. Or "0.0.0.0" if
you want to listen on all IPv4 interfaces.
- -chris
Hi Chris,
Thank you for your response.
Indeed setting the address attribute to 0.0.0.0 in the <Connector>
element solves the issue.
Tomcat is then indeed listening to all IPv4 interfaces. Though
connecting over IPv6 is not possible then.
Can't you them set up a second Connector, with an equivalent IPv6
address ?
Since it is bound to different addresses, it shouldn't conflict with
the first, or would it ?
I have set them up now as:
For IPv4:
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" address="0.0.0.0" />
For IPv6:
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" address="::0" />
As I understand it, this way one cannot use port 80 simultaneously
for IPv4 and IPv6?
Well, honestly I wonder. But on the face of it, I don't immediately
see why not. Have you tried it ?
(I mean, set both Connectors above for port 80)
..
Hi André,
Indeed setting both connectors to port 80 is also functioning.
Thank you!
Harm-Jan Zwinderman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org