RationalGeek
RationalGeek

Reputation: 9599

Change port for TeamCity web server

I installed TeamCity and got it working against my project. However, I have since realized that I don't want it the administration page to be configured on port 80. I'm going to have other websites on that server that I want on the default port. How do I change the configured port?

I wandered around the configurations a bit and looked through the administration settings but couldn't figure it out.

Upvotes: 72

Views: 32155

Answers (3)

From the TeamCity-readme.txt file:

By default, TeamCity will run in your browser on http://localhost:80/ (Windows) or http://localhost:8111/ (Linux, macOS).

The documentation is somewhat misleading. Actually, it is available on port 8111 on Windows:

http://localhost:8111/

With no additional configuration changes needed.

It's already set in /conf/server.xml.

Upvotes: 0

sfussenegger
sfussenegger

Reputation: 36105

The port number can be edited in the <TeamCity home>/conf/server.xml file, line <Connector port="8111" protocol="HTTP/1.1".

from Installing and Configuring the TeamCity server

Upvotes: 137

dthrasher
dthrasher

Reputation: 41822

To add to the answer provided by @sfussenegger you will also need to make sure that your build agents can still connect to the TeamCity server instance on the new port, or else your builds won't run.

To do this, you'll need to change the build agent configuration files to reflect the new serverUrl value. You can find this setting in the C:\TeamCity\buildAgent\conf\buildAgent.properties file.

Upvotes: 59

Related Questions