Ask you master! How to access the computer tomcat on the phone!

Source: Internet
Author: User

============ Problem Description ============


I'm a rookie!
I'd like to ask if I deployed Tomcat on my own PC, and then I can connect tomcat! directly on the emulator.
But I want to test it with a real machine!!
How to deploy it????

============ Solution 1============


Local PC is intranet, mobile Internet access is through the public Network (external network) way, unless you this PC intranet server, through the router inside the mirror settings, through the broadband assigned to your extranet IP access, so that the mobile phone access to this extranet IP can be accessed.

============ Solution 2============


http://10.0.2.2:8080, if you use localhost access is the address of the phone, if not 10.0.2.2 is 10.0.0.2, landlord you try

============ Solution 3============


HTTP//Your ip:8080/.
Example: http://192.168.123.123:8080/

============ Solution 4============


The same upstairs. Directly with the PC's network IP. Just as you access Tomcat on another PC

============ Solution 5============


Link WiFi on it, stay inside the same LAN.

Ask you master! How to access the computer tomcat on the phone!

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.