Posts Tagged Tomcat

Tomcat – How to change port 8080

Wednesday, May 20th, 2009

Default port of tomcat is 8080, this port can be changed to any other port. Normally HTTP port is 80, tomcat port can change through server.xml in config folder of tomcat.

How to change tomcat port 8080

c:\tomcat\conf\server.xml

Search for this line

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

Change to 8080 to your desire port Number

<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />

After modification in server.xml file, tomcat must be restarted.

1