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.
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)
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!!!