How to bind Confluence to a particular network interface

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.


By default, Tomcat will bind *:port when reading in a connector; that is, it will listen on every IP/Interface.  In situations where a server has more than one network interface card, you can bind to a specific one by adding the address element to the connector configuration.


Change the server.xml file by adding an address element:

<Connector port="8080" connectionTimeout="20000" redirectPort="8443"
maxThreads="48" minSpareThreads="10"
enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false" startStopThreads="4">

Also, change the hostname from localhost to the relevant host name. In the file above, they are on the same IP.

Do note, that since usually there is only one Host container, the name set there should also match the value of defaultHost set in the Engine container. If there is more than one Host containers, exactly one Host's name should match the Engine's defaultHost. Please refer to the official Tomcat Host documentation reference for details.
Last modified on Oct 13, 2022

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.