Test a Tomcat-published web app using your phone

Source: Internet
Author: User
I. How mobile phone access to PC-released Tomcat project app

1. Ensure that the network of the mobile phone and PC is in one LAN:

We should connect the phone with the PC in the same wifi, or let the PC generate hot spots for the phone to connect, but also use the phone to generate hot spots for the PC to connect

2. Phone input access address Http://PC machine ip:8080/project name/

In this way, the Web app can be tested on the phone.

Two. Bootstrap design of the page on the phone does not appear responsive design reasons

1. Mobile browsers do not support responsive design, such as the UC browser by default, they are proud of the "fast mode (2B mode)", originally in Safari, Chrome display the normal page, where he generated a series of problems.

2. Viewport in the Web page you are developing has not been added:

<name= "Viewport"  content= "Width=device-width, initial-scale=1, Maximum-scale=1 "/>

Test a Tomcat-published web app using your phone

Related Article

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.