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