http://localhost:8080/MyCoolApp
Eclipse allows us to change these port numbers easily with just a click of mouse. In the Servers view, double click on the server name:That will open a configuration page for Tomcat as follows:Notice the port numbers are shown in the table on the right. Click to edit, for example:That will change port number for HTTP from 8080 to 80. Press Ctrl + S to save the change and restart the server. We can spot the change of port number in the Console view:http://localhost/MyCoolApp
NOTES: Changing the Tomcat’s port numbers in Eclipse does not affect the default Tomcat installation on your computer (outside Eclipse IDE). It is because Eclipse makes a copy of Tomcat configuration in its workspace, by default. If we notice, there is a node called “Servers” in the Project Explorer/Package Explorer view. Expand this node, we will see:Under the hood, Eclipse updates the server.xml file when we make change to the port numbers, just like the way we change Tomcat’s port numbers in general.Also read: Change Tomcat port numbers in server.xml file You can also follow this video to modify the HTTP port number of Tomcat in Eclipse: