Current location - Quotes Website - Team slogan - Modify tomcat port number
Modify tomcat port number
Local area network, other browser input.

Http:// Your ip (which can be checked by ipconfig): tomcat port number (default 8080)/ project name.

If you are on your computer, you can use your computer as a server. You need to start your own web project, then press win+R to open the console, and enter: ipconfig /all to find the ip of your computer. Then change "localhost" to the ip address of your computer. That is http:// own ip:8080/projectname. Send this URL to others, who can access your webpage through this URL.

How to publish java web project tomcat manually

First, right-click the project and select export.

Select Java ee-& gt;; WAR file Click Next.

Select the project to export, and then click Browse to select the file name to save.

save a file

Copy the saved file to tomcat. After starting tomcat, it will be automatically extracted to this directory, and then you can access the project.