Mobile access to Tomcat-initiated projects

Source: Internet
Author: User

Scenario Description:

For the boss to show their own mobile phone page, I am some proud of using the Chrome browser features in the review, let the boss see my proud page design. The boss was surprised to ask, "Why don't you use your cell phone to view?"

"Can I view it directly from my phone?" "I asked with suspicion?" Of course "The boss of the affirmation surprised me, and there is such a thing, I do not know Ah!" Quickly ask how to use. "You turned on the Tomcat server, with your phone connected to the computer, but changed localhost to a computer IP." "I use the phone to try, in Baidu Browser, directly enter the" HTTP://192.168.1.128:8080/SSR3 ", and then click on the link, sure enough to appear on the project home page. I've been proud to test my page with chrome and thought I found the best way. But on the computer to view, after all, or not directly on the phone to see more convincing and real!in this way, I have several doubts in my mind:1. How to use mobile phone to view Java Web Project2. Why can I view the Java Web project directly on the phone? 3. What are the conditions for accessing a Java Web project directly from a mobile phone?  Answer 1:programme One:

First check your own IP, you can start to run and then enter CMD, out of the DOS window, enter "Ipconfig" jumped out of the option to have an IP address behind is your intranet addresses, For example I am: 192.168.0.87 and then put the project under Tomcat WebApps, start, others can be http://192.168.0.87:8080/project name/index.jsp similar to can access the


Scenario Two:If you're using Eclipse software development, you're good to go, just match Tomcat, then publish the project to the server (there's a button in Eclipse), then start the Tomcat in Eclipse OK, and then turn on the server later. You don't have to operate in Eclipse and start Tomcat directly. Passhttp://192.168.0.87:8080/Project NameLike this, you can accessAnswer 2:This problem has to understand what is the server this thing.What is a server? A server, also known as a servo, is a device that provides computing services. Because the server needs to respond to service requests and handle them, the server generally has the ability to assume service and guarantee services. The server consists of a processor, hard disk, memory, system bus, etc., similar to a common computer architecture, but because of the need to provide high-reliability services, the processing power, stability, reliability, security, scalability, manageability and other requirements. In the network environment, depending on the type of service provided by the server, it is divided into file server, database server, application server, Web server and so on. A project in Java programming, typically a Web project. The server used is the server of the Web server type.Web Server

Web servers generally refer to Web servers, which are programs that reside on some type of computer on the Internet, can provide documents to Web clients such as browsers, and [1] can also place web site files for worldwide browsing; You can place data files for download worldwide. Currently the most mainstream three Web servers are Apache Nginx IIS.


what is a Web server? A network server is a dedicated computer that provides a service to a customer under a network environment.Introduction to the WebA Web server is a program that can provide documentation to the requesting browser. 1. The server is a passive program: The server responds only when a request is made by a browser on the Internet that is running on another computer. 2. The most common Web server is the Apache and Microsoft Internet Information Service (Internet Information Services,iis). 3. A server on the Internet, also known as a Web server, is a computer with a separate IP address on the Internet and can provide a variety of internet services, such as www, email, and FTP, to clients on the Internet. 4. A Web server is a program that resides on some type of computer on the Internet. When a Web browser (client) connects to a server and requests a file, the server processes the request and feeds the file back to the browser, which tells the browser how to view the file (that is, the file type). The server uses HTTP (Hypertext Transfer Protocol) to communicate information to the client browser, which is why they are often referred to as HTTP servers. A Web server can not only store information, but also run scripts and programs on the basis of information provided by the user through a Web browser. In a Java Web project, when a tomcat-like server is launched, the same LAN can be//(IP): (port number)/project nameTo access the published Java project.Answer 3:By 2, the conditions for accessing the Java Web site using a mobile phone. 1) Local area network; 2) server IP3) server port number 4) project has been published to server; 5) mobile browser. Then directly with the mobile browser: http://(IP) (port number)/Project name Access project reference: Baidu-Server

   

Mobile access to Tomcat-initiated projects

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.