title: Apache Tomcat Error: Socket bind failed
body: <p>When I run my Apache Tomcat server on Windows 8.1, the server returns:</p>
  
  <pre><code>java.lang.Exception: Socket bind failed: [730049] The requested address is not valid in its context.  
  at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:310)
  at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:790)
  at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:544)
  at org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:67)
  at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
  at org.apache.catalina.core.StandardService.initInternal(StandardService.java:569)
  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
  at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:851)
  at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
  at org.apache.catalina.startup.Catalina.load(Catalina.java:600)
  at org.apache.catalina.startup.Catalina.load(Catalina.java:623)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:497)
  at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:310)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
  </code></pre>
  
  <p>Here's my Connector in my server.xml as well:</p>
  
  <pre><code>&lt;Connector port="8080" protocol="HTTP/1.1"
             connectionTimeout="20000"
             redirectPort="8443"
             address="192.168.0.1"/&gt;
  </code></pre>
  
  <p>And my Engine:</p>
  
  <pre><code>&lt;Engine name="Catalina" defaultHost="192.168.0.1"&gt;
  </code></pre>
  
  <p>And my Host:</p>
  
  <pre><code>&lt;Host name="192.168.0.1"  appBase="webapps"
          unpackWARs="true" autoDeploy="true"&gt;
  </code></pre>
  
  <p>I should also mention that my private and public IP addresses are available.</p>