Turn your computer into a virtual server

  
        

I developed a blogging system myself? Small webapp? What if I don't want to buy a domain name to buy space? Teach you how to make your computer a small server, so that the computer on the external network can access your website (project). The first step: first download the "Peanut Shell" software, software download address: http://www. Oray.com/peanuthull/download.php Step 2: Install and register an account, apply for a free domain name xxx.xxx Step 3: Go to the tomcat directory and find the conf.xml modification (where xxx.xxx is your application) Domain name): <Host name="xxx.xxx" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> Step 4: Modify conf.xml (where xxx.xxx is the domain name you applied for) <Engine name="Catalina" defaultHost="xxx.xxx"> Step 5: Set the virtual server forwarding rules to the router —&mdash ;>Virtual Server——>Add new entry service port number: (XX-XX or XX)IP address: Protocol: Status: Service port number: 8080 (mainly for the same port as tomcat, if Speaking of the port number in tomcat is set to 80, then this is also set to 80) ip address: is your local ip address protocol: all state: effective sixth step: restart tomcat, then enter: xxx in the browser. Xxx:8080 (If the port number is 80, you do not need to enter the port number), if you open the home page of tomcat, then ok. You can post your project to tomcat and you can access your project on the extranet!

Copyright © Windows knowledge All Rights Reserved