tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Coolbergen" <ccoolber...@camct.com>
Subject Change Tomcat Default IP address
Date Fri, 28 Sep 2001 08:10:55 GMT
Sending this again as i don't think everyone received it...

I have Tomcat 3.2 running in standalone mode on a server with an
internal and external IP address.
At the moment i can access Tomcat using http://localhost:8080 or by
replacing localhost with the server's internal IP address.

However, i wish to be able to access Tomcat via its external IP address.

I have tried configuring the server.xml file as follows:

<Connector className=3D"org.apache.tomcat.service.PoolTcpConnector">
	<Parameter name=3D"handler"
value=3D"org.apache.tomcat.service.http.HttpConnectionHandler"/>
 	<Parameter name=3D"inet" value=3D"195.152.56.140"/>
	<Parameter name=3D"port" value=3D"8080"/>
 </Connector>=20

But get the following error:

FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at java.net.ServerSocket.<init>(Unknown Source)
        at org.apache.tomcat.net.DefaultServerSocketFactory.creat
ServerSocketFactory.java:97)
        at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoin
nt.java:230)
        at org.apache.tomcat.service.PoolTcpConnector.start(PoolT
a:171)
        at org.apache.tomcat.core.ContextManager.start(ContextMan
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:1
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

Any help would be appreciated,

Chris

Mime
View raw message