Tomcat’s default port number is 8080. Sometime we have conflict with port numbers. The Famous Port conflict is Skype vs WAMP. For avoid some problem, we need to change Tomcat’s port number.
You may use any platform, it’s may Windows, Ubuntu – debian, eclipse, xampp, linux, netbeans or else. You may use any version of Tomcat 9, 8, 7 6 or below. But, We are having only one simple step that should fix you tomcat port issue.
First go-to conf folder, by following way.
1 |
D:\Tomcat 9.x\conf\ |
Here, Tomcat 9.x is Tomcat Installation folder. It’s depend upon your Tomcat Installation.
In that folder, Find server.xml file and open for edit.
In that file You can see following code,(example code given, parameter may change)
1 2 3 4 5 6 |
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443" /> |
Here change port=”8080″ to port=”420″. Not only ‘420’, you may change any port number. Before that, make confirm whether that port using by any other service.
Last and Important step. Stop and Restart your Tomcat. Don’t forget this step. Cool!!!
How to change the port number of Tomcat?
Latest posts by karsho (see all)
- Increase maximum query size max_allowed_packet for MySQL - March 29, 2020