Mobile phone access to the Tomcat Server site sample via laptop WiFi

Source: Internet
Author: User
I always want to use the mobile phone to connect the server tomcat, tried for a long time not connected, the lab a sister will this technology, I also want to learn, their own groping to learn a few times, did not succeed, tonight to think of a way to try, you can connect, you can do mobile website development, which is also part of mobile development Oh! 1. Turn on your computer's WiFi, your phone is connected to the WiFi, and your phone and computer are on a network segment. 2. Command line input ipconfig Enter, you can see the laptop built WiFi IP address, in the phone's WiFi function can also see the phone IP, my test, found that the computer IP is: 172.16.222.1, Mobile: 172.16.222.2, Apparently on a local area network. 3. Start the Tomcat server on the computer side, start the MySQL database server, 4. Computer-side input Local address: http://127.0.0.1: Port number/Your Web project name/page name, you can access the site; 5. Mobile input/HTTP// 172.16.222.1: Port number/Your Web project name/page name, enter to access the site

Mobile phone access to the Tomcat Server site sample via laptop WiFi

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.