You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ronny Haryanto <ro...@seatech.com> on 2003/01/03 04:12:32 UTC

tomcat binds only to localhost??

Hi everyone,

I have a strange problem with Tomcat 4.1.18 on Windows 2000. The
machine has one ethernet, dhcp enabled, and the primary ip is
192.168.1.2 (LAN) and it is also accessible via 202.157.154.130 
and seatech.com.

I can only access Tomcat via http://localhost:8080 from the machine
itself, but not http://seatech.com:8080 even though seatech.com
clearly resolves to 202.157.154.130 and I don't configure Tomcat to
listen to one specific address/interface in server.xml (the default is
that Tomcat listens to any available address, right?). I also checked
the logs for errors, but I didn't see any.

Am I missing something? I would greatly appreciate any help or
suggestions. Thank you for your time.

Regards,

Ronny

PS. Here's the server.xml file.

<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
            debug="0"/>
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
            debug="0"/>
  <GlobalNamingResources>
    <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
       description="User database that can be updated and saved">
    </Resource>
    <ResourceParams name="UserDatabase">
      <parameter>
        <name>factory</name>
        <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
      </parameter>
      <parameter>
        <name>pathname</name>
        <value>conf/tomcat-users.xml</value>
      </parameter>
    </ResourceParams>
  </GlobalNamingResources>
  <Service name="Tomcat-Standalone">
    <!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
               port="8080" minProcessors="5" maxProcessors="75"
               enableLookups="false" redirectPort="8443"
               acceptCount="15" debug="0" connectionTimeout="20000"
               useURIValidationHack="false" />
    <Engine name="Standalone" defaultHost="seatech.com" debug="0">
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 debug="0" resourceName="UserDatabase"/>
      <Host name="seatech.com" debug="0" appBase="webapps" 
       unpackWARs="true" autoDeploy="true">
	    <Alias>www.seatech.com</Alias>
        <Valve className="org.apache.catalina.authenticator.SingleSignOn"
                   debug="0"/>
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="seatech.com_access_log." suffix=".txt"
                 pattern="common" resolveHosts="false"/>
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="seatech.com_log." suffix=".txt"
	        timestamp="true"/>
      </Host>
    </Engine>
  </Service>
</Server>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>