If you work on web development then you must have used Tomcat server for deployment. Tomcat is the most widely used web server by developers and it is even used for production deployment of many web applications. Sometime when you run more than one server in single host or when default port which 8080 is already used by some other server, then you need to change the port configuration of Tomcat server.
In this article we will talk about how to change the port configuration of Tomcat server. Tomcat server has file named server.xml which contains the setting for port configuration. Below is the process to change the port configuration of Tomcat server.
Open server.xml file of Tomcat server. You can find this file in below path.
<Tomcat Home Dir>/conf/server.xml
Find the Connector tag in the file, this tag will look like below. Change the port attribute of connector tag and save the changes. Post this, restart the server.
After restart if you still see java.net.BindingException : Address already in use exception in console of server, then first ensure, port you are setting is not used by any other process.
Comments