title: How to bind tomcat 7 to ipv6
body: <p>I am trying to bind apache-tomcat-7.0.77 to my local link ipv6 address. Please note that I am working on windows 10 pro. </p>
  
  <p>I have done below - </p>
  
  <p>[1] At first I simply initiallized the server with start command and tried to hit the tomcat's manager page using my local link address ([ipv6]:8080/manager/html), but it didnt work.</p>
  
  <p>[2] As a workaround, </p>
  
  <p>[2.a] I have added a configuration in <code>C:\Windows\System32\drivers\etc\hosts</code> file for a new hostname and my local link address like this -- <code>[my local link address]   rahul</code></p>
  
  <p>[2.b] Updated the tomcat's server.xml, with a new address attribute ---</p>
  
  <pre><code>&lt;Connector port="8080" protocol="HTTP/1.1"
                 connectionTimeout="20000"
                 redirectPort="8443" address="&lt;my local link address&gt;"/&gt;
  </code></pre>
  
  <p>[2.c] Now when I hit the url - <code>http://rahul:8080/manager/html</code>, I am able to reach to manager page. But it is still not working with url -- <code>http://[ipv6 add]:8080/manager/html</code></p>
  
  <p>Also command - </p>
  
  <pre><code>`netstat -an | find "8080"` 
  </code></pre>
  
  <p>giving me output ---> </p>
  
  <pre><code>`TCP    [&lt;my local link ipv6 add&gt;]:8080  [::]:0`
  </code></pre>
  
  <p>That means tomcat is actually listening to my local link ipv6 address.</p>
  
  <p>This approach is working but the only problem with this approach is that I have to mention the address in server.xml</p>
  
  <p>Please help me by suggesting the way through which I can bind the tomcat 7 to ipv6 on windows machine without specifying address attribute in server.xml</p>