2017  Kodetalk | Feedback | Privacy Policy | Terms | About

Change the port number in Tomcat Server

I am developing one struts application. earlier with out data base connection i did my work easily, Now  Data base server default port number is also 8080 ,I got know we cant change the Data base port number,Next option is to change the Tomcat server port number.

How it"s possible.


To change the port number of tomcat follow below process:

Go to the tomcat directory.

Find conf folder.

edit the server.xml file

You will find a tag as below:

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

change the post number 8080 to the expected port number.

start server and enjoy.

Answer is