The first step: Download Tomcat 7.0.27 Click the Open link, this is a no-install compression package, decompression can be used.
The second step: Apply for dynamic domain name, you can go here to register a peanut shell account, registered well after, will get a free domain.
Step Three: Configure the router and enter it on the browser: 192.168.0.1 or some of them are 192.168.1.1, go inside as shown
(My this is the Tengda router, but what kind of router settings are similar), set up a virtual server, select the common port for DNS (53), the intranet IP is its own computer IP, can be entered in the Doc Command window: ipconfig query; Then set the DMZ host IP also for its own LAN IP, Set the Enable Dynamic DNS service in the System Tools, select Oray.net (that is, the peanut shell domain name), the account number and password is your peanut shell registered account and password, the domain name fill you get from the peanut shell free domain name, set up, save off.
Fourth step: To verify that the configuration is successful, you can first enable the Tomcat service and then enter it on the browser: 127.0.0.1:8080 to see if the Tomcat service started successfully, and if successful, log on to the Peanut shell staging domain client, as shown in the figure,
And then click Network Tools to ping to get the free domain name connected, as shown in the figure
, if the result appears as shown, it is connected; if the "Request timed out" or TTL expires, check if Windows Firewall is turned off, and if not, turn off the firewall first. Finally, enter http://Your free domain name on the browser (8080/, see if there will be a cat, if it appears, it shows that you are only a step away from success, if not, you need to check, the previous steps have been done.
The final step: you set up a Web project, copy and paste into the Tomcat home directory WebApps directory, and then enter the path of the project in your browser, to see if it can run, if so, then you say the above HTTP address through the QQ copy paste to your friends to dazzle it.
If you want to implement a direct input to your free domain to achieve access to your Web project, please refer to this link http://www.codesky.net/article/201105/148909.html
or http://www.blogjava.net/qingshow/archive/2010/01/17/309846.html.