Setting of Tomcat server for Internet access to LAN

Source: Internet
Author: User

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.

Related Article

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.