tags:

views:

2815

answers:

1

How do you configure tomcat to bind to a single ip address (localhost) instead of all addresses?

+8  A: 

In the tomcat/conf/server.xml there are several connectors configured.

each connector has an optional "address" attribute where you can specify a bind address for that connector.

<Connector 
    port="8080" 
    protocol="HTTP/1.1" 
    address="127.0.0.1"
    connectionTimeout="20000" 
    redirectPort="8443" 
/>
ScArcher2