Yesterday I installed TeamCity on my machine. During the setup process it asked me if I want to change the default port from 8080 to something else. I ignored it and went ahead with configuration. Now, later when I restarted my machine every application was in a rush to occupy "Port 80" which left TeamCity hanging. When visiting http://localhost:80 it would show IIS which meant that IIS won the race.
So, the question is how do we change the port of TeamCity. Inside your TeamCity folder search for the file server.xml. That will contain the following piece of XML:
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="81" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8543"
enableLookup="false"
useBodyEncodingForURI="true"
The port is "81" and if you visit http://localhost:81 you will see the team city running.