Environment: Windows Vista + Tomcat 5.5 + peanut shell dynamic domain name 6.0
My lan ip Address: 192.168.0.118
Part 1: Build a Tomcat server
1 .? Download an installation-free version of Tomcat. I decompress the package in the soft folder of drive D.
2 .? Double-click STARTUP at D:/soft/Apache-Tomcat-5.5.27/bin to display a cmd window. Started successfully
3 .? Enter http: // localhost: 8080/in the address bar of the local browser /. Local access successful
4. Enter http: // 192.168.0.118: 8080/in the address bar of another computer in the LAN /. At this time, other computers in the LAN can access the server. If the access is successful.
5. Conclusion:
① I use the free installation version because it is convenient to debug the program, but Tomcat also has an installation version. It is recommended that the latter be used.
② Pay attention to the Tomcat settings. If you have a user name and password, you must enter it, but I have never used it.
③ I wrote a login project test in Java. Put the project in webapps and start Tomcat.
④ Check the address bar. The test is successful.
Part 2: Register, download, and log on to the peanut shells.
Part 3: vro settings
1 .? Enter 192.168.0.1 in the browser to log on to the vro.
2 .? Port ing.
Single choice: Activation
Name: any one
Personal IP Address: your intranet IP address (My address is 192.168.0.118)
Protocol mode: select TCP
Private Service port: 8080 (Tomcat server port 8080)
Public Service port: 8080 (Internet access port)
SCHEDULE: select by yourself (default)
Remember to save it.
3. Pay attention to this step. I did not activate DMZ. I listed this step separately because many people on the Internet say they want to activate DMZ, but this is very dangerous. If this is not the case, consider DMZ.
3. Test Access with a domain name in the LAN. Enter http://qingshow.vicp.net: 8080/login (SSH) 2 in the address bar. Note the description in the image. Test successful
4. Test Internet access. Enter http://qingshow.vicp.net: 8080/login (SSH) 2 in the address bar.