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 linux
system as an example
Terminal type ifconfig -a
after
Find ip address in the output content
The second way
to open wifi settings
Click TCP/IP
to find the bottom of the iPv4 Address
can
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: