Wednesday, February 13, 2013

How To Change The Default Port Of Tomcat

1) Go to 'conf' folder in tomcat installation directory.

2)  Edit following tag in 'server.xml' file.

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

3) Change the port=8080 value to a preferred value.A port number is a 16-bit unsigned integer, thus ranging from 1 to 65535. The port numbers in the range from 0 to 1023 are the well-known ports. They are used by system processes that provide widely used types of network services.

4) Save file.



No comments:

Post a Comment