Changing JIRA's TCP Ports
Why Change JIRA's TCP Ports?
By default, JIRA uses TCP listening port 8080 (including default Apache Tomcat installations running JIRA WAR) and hence, JIRA is typically available at
If, however, an existing service running on your machine is claiming port 8080, there will be a conflict and JIRA will fail to start. You may see errors like this:
This can be fixed by changing JIRA to use another TCP listening port (eg. 8100) and shutdown port (eg. 8015).
Changing JIRA's TCP Ports
Before you change JIRA's TCP ports, read the following:
- Which port number should I choose? If you are not sure which port number to choose, use a tool such as netstat to determine which port numbers are free to use by JIRA. The highest port number that can be used is 65535 because it is the highest number which can be represented by an unsigned 16 bit binary number. The Internet Assigned Numbers Authority (IANA) lists the registration of commonly used port numbers for well-known Internet services, it's advisable to avoid any of those ports.
- A note about firewalls: When you choose a port number for JIRA, bear in mind that your firewall may prevent people from connecting to JIRA based on the port number. Organisations with a local network protected by a firewall typically need to consider modifying their firewall configuration whenever they install a web-based application (such as JIRA) that is running on a new port or host. Even personal laptop and desktop machines often come with firewall software installed that necessitates the same sort of change as described above. If JIRA does not need to be accessed from outside the firewall, then no firewall configuration changes will be necessary.
- If you are using JIRA WAR, please be aware that changing JIRA's TCP ports of the Tomcat installation running JIRA will affect any other web applications deployed to the same Tomcat installation.
You can change JIRA's TCP ports by using the JIRA configuration tool or by manually editing the server.xml file. If you installed JIRA using the 'Windows Installer', 'Linux Installer' or from an 'Archive File', you can use the . The JIRA WAR distribution does not include this tool.
Changing JIRA's TCP Ports using the JIRA Configuration tool
- Start the JIRA configuration tool, see Using the JIRA Configuration Tool for instructions on where to find the tool.
- Click the Web Server tab.
- In the HTTP Port field, enter the new TCP listening port number.
- In the Control Port field, enter the new TCP shutdown port number.
- Click the Save button. Your changes are saved to the
server.xmlfile located in the
confsubdirectory of your JIRA Installation Directory.
Changing JIRA's TCP Ports by editing the server.xml file
server.xml file in the
conf subdirectory of the JIRA Installation Directory (or of the Apache Tomcat installation that runs your JIRA WAR installation). The start of the file looks like:
For example, change the shutdown port from "8005" to "8015" and the listening port (i.e. in the
<connector/> element) from "8080" to "8100". (See below to decide which TCP port numbers should be used for JIRA.)
Then, restart JIRA and point a browser to
If you are running on a Unix server and bind the ports below 1024 (such as port 80 for example), you will need to start JIRA as root in order to successfully bind to the port.
Was this helpful?
Thanks for your feedback!