title: Tomcat won't start: java.net.BindException: Cannot assign requested address
body: <p>when I start my locale instance of Tomcat I get the following error:</p>
  
  <pre><code>    SEVERE: StandardServer.await: create[8005]: 
      java.net.BindException: Cannot assign requested address: JVM_Bind
      at java.net.PlainSocketImpl.socketBind(Native Method)
      at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
      at java.net.ServerSocket.bind(ServerSocket.java:319)
      at java.net.ServerSocket.&lt;init&gt;(ServerSocket.java:185)
      at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
      at org.apache.catalina.startup.Catalina.await(Catalina.java:662)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:614)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
  </code></pre>
  
  <p>I have seen on forums people had the same problem. 
  Netstat doesn't show ports 8080, 8005 or 8009 in use. I tried to change port but I get the same error. I've also checked the hosts file in 
  Windows\System32\drivers\etc and the line </p>
  
  <pre><code>127.0.0.1       localhost
  </code></pre>
  
  <p>is not commented. I didn't change anything in server.xml and since yesterday I can't get it to work.
  Any ideas?</p>
  
  <p>EDIT:</p>
  
  <pre><code>&lt;Server port="8005" shutdown="SHUTDOWN"&gt;
  
  Connectors:
   &lt;Connector port="8080" protocol="HTTP/1.1"
                 connectionTimeout="20000" 
                 redirectPort="8443" /&gt;
  
  &lt;Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" SSLEnabled="true"
                 maxThreads="150" scheme="https" secure="true"
                 clientAuth="false" sslProtocol="TLS"
                 /&gt;
  
  &lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /&gt;
  </code></pre>
  
  <p>Thanks for you help</p>