Saturday, November 17, 2007

Server @ home - Tutorial

Here's how you go about setting up a remotely accessible home-server:

Note that this manual pertains to my home setup only, which is:
  1. Windows XP SP1
  2. MTNL TriBand (Mumbai, INDIA)
  3. UTSTarcom router UT-300R2U
So here's how you go about:

You will need to make the changes in your router setup. No changes are required to be made to your PC setup. The router setup is done via a browser, using a fixed IP address. To figure it out:
  1. Run command prompt
  2. Type ipconfig
  3. Type the address of the Default Gateway in your browser
  4. Type in the username and password (admin, admin) in my case
  5. Go to Advanced tab
  6. Click on Virtual Server
  7. In Private IP, type the IP address as mentioned in your 'ipconfig' result
  8. Select protocol TCP
  9. Select local port 8080 (in case of Tomcat)
  10. Destination port: any port.
  11. Next, go to Filters.
  12. In Oubound filter, add any source IP, any destination IP, any source port, any destination port, any protocol, action Aceept.
  13. Do the same settings in inbound filter.
  14. Go to Tools > Misc and click on Save and reboot.
  15. Restart your PC
You are done with the setup. Now, to access your PC remotely, go to a friend's place (or any other damn PC outside your home; something that doesn't use your router). You will need your home PC running (not even on standby). Tomcat must also be running. You must have the IP address of the home PC (Found in Status under your router admin panel (thru the browser))

Now simply type the address, followed by the port number in your friend's browser. It should look something like: 59.182.27.28:8080

If you see Tomcat's welcome page, you've been succesful!!

No comments: