How to access the local network using tomcat build websites on phones, tablets and other mobile devices

How to access the local network using tomcat build websites on phones, tablets and other mobile devices

The first step: to build a good tomcat, and start the service

For details, see: http://www.huangjihao.com/index.php/archives/645

Step Two: Check your ip address set up tomcat service host

The first way
to the linuxsystem as an example

Terminal type ifconfig -aafter

Find ip address in the output content

The second way
to open wifi settings

Click TCP/IPto find the bottom of the iPv4 Addresscan

I find my computer's ip address192.168.43.162

The third step: the mobile terminal device and a computer connected to the same network

Step 4: Enter your address in the mobile terminal device

Address on the computer is:http://localhost:8080/WebFruit/

Corresponding to the address of the mobile terminal device is:192.168.43.162:8080/WebFruit

display effect:

Published 35 original articles · won praise 1 · views 1848

Guess you like

Origin blog.csdn.net/qq_40672635/article/details/104632623