Port 80 already in use; can I use a different port?

Hello,
I have no clue what other program might be using port 80, but after checking the TeamCity log file, it appears to be in use already:

The following is from catalina.2012-12-03.log:

SEVERE: Failed to initialize end point associated with ProtocolHandler ["http-bio-80"]

java.net.BindException: Address already in use: JVM_Bind <null>:80

 at org.apache.tomcat.util.net.JIoEndpoint.bind(JIoEndpoint.java:382)

 at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:553)

 at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:369)

 at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:119)

 at org.apache.catalina.connector.Connector.initInternal(Connector.java:937)

 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

 at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)

 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

 at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:781)

 at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)

 at org.apache.catalina.startup.Catalina.load(Catalina.java:573)

 at org.apache.catalina.startup.Catalina.load(Catalina.java:598)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

 at java.lang.reflect.Method.invoke(Unknown Source)

 at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:281)

 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:449)



I tried changing the port when the 'Configure Build Agent Properties' window came up, in the serverUrl property, but this didn't seem to have any effect.

Is there a configuration file I use to change the server port, and then maybe restart the TeamCity services?
3 comments
Comment actions Permalink

Solved by editing server.xml in the conf directory; see here for more info.

http://serverfault.com/questions/454688/teamcity-port-80-is-already-in-use-i-think

0
Comment actions Permalink

Yes, the port setting is stored in server.xml file.

On Windows you can use netstat -a -b command to determine the conflicting process.

0
Comment actions Permalink

Oh wow, it was Skype.  Interesting...

0

Please sign in to leave a comment.