Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What does localhost:8080 mean?

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article is to share with you about what localhost:8080 means. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

What is localhost:8080?

Is a port bai of your own computer. Localhost is the default duWEB publishing path of the local computer, and zhi8080 is the port number.

If you visit the dao URL, you can see the content posted by the WEB server on your local machine.

Because the set port is 8080, if the port number is not added, the default is 80, but your tomcat is set to 8080, so 80 can not be opened, because this port is not open. The method to modify the tomcat port number:

Modify the Server.xml file to change port 8080 to 80.

8080 is the default port number for the Tomcat server.

We can change it by modifying the main configuration file server.xml under the conf directory of the Tomcat server. Open the server.xml file with notepad and find the following section:

Change the port= "8080" to a new port number, such as "8080" to "9080" and so on.

What is the function of localhost:8080?

I did a javaweb project last semester, and the software testing course needs testing this semester. But the server rented last semester has already expired. I also wanted to share this project with my partner, so I thought: can I have another partner see it on his computer for my local project? Finally, it is successful. The specific steps are as follows:

First, make sure that you can access it locally.

Turn off the native firewall

Right-click "my computer"-> Top left "Control Panel Home"-> find "WindowsDefender Protection Wall"-> Click "enable or close WindowsDefender Protection Wall"

Turn on the hotspot on your phone and connect your computer to the computer or phone you want him to access your project, that is, from the same local area network.

Find native ip

Windows+R- > enter cmd

Access can be accessed.

Thank you for reading! This is the end of this article on "what does localhost:8080 mean?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report