Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Port Forwarding For Webservers, Running a Webserver On a Router
mist
post Aug 18 2007, 08:24 PM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 12
Joined: 17-August 07
From: Canada
Member No.: 24,159



Hi guys, I' back again and this tutorial is about port forwarding. I am going to gear it towards users who want to run a webserver on their computer but cannot, simply because their router is blocking the http port (usually 80). Before we begin, let me give you some background. Usually, when you connect to the internet directly through a modem, a user would just have to visit your ip address (assigned by your isp) to visit your server. However, when you are running on a router, there are a few things to take into consideration. The router gives private LAN (local area network) ip addresses to each computer running on it. This essentially means that external users would not be able to access individual ports on private ip addresses. However, there is a way to go around this. Usually called port-forwarding or "tunnelling," the method I will explain below essentially forwards external users who are on a specific port to a private ip address within the network. For those of you who have no clue what I am talking about, think of it this way: Imagine your LAN is a building with multiple people each with individual extensions. If people within the building wanted to reach each other, they would just have to call their extension. If someone externally called the phone-number (without any extensions), they would reach the switchboard (router) and would not be able to reach a person who is in that building. However, if the switchboard is configured to redirect all calls to a specific extension, people are able to externally access a specific person. This is a basic example of what we will be doing.

Lets Begin:
  • First you need to login to your router.

    Ideally, you should know the address to connect to and the username and password. If you are not sure of the address, Go to Start->Run and type in cmd. Once a command prompt comes up, type in ipconfig. The number appearing beside IP Address is your local private address. To find out the address of your router, remove the last two digits of this number.

    Please note that this only works if you are connected to a simple one router network. More routers will complicate matters as you will need to enable double-port forwarding.
  • Once you are logged in to your router, find a section for port-forwarding, tunnelling or virtual servers.
  • Create a new setting.
      Name: Not very important, not applicable to all routers.
      Private IP: The Private LAN IP you have been assigned by your router. To find this, use the same method as above (Run->Cmd->Ipconfig) but use the whole number.
      Private/Public Ports Usually, these are the same. For most people, the port listed here would either be 80 for http, 25 for smtp and 21 for ftp. There are exceptions; for example many ISPs block port 25 (for alleged spamming reasons) which is the default SMTP port. Some opt to change this use an intermediary server to reflect sent mail from your server on a different port. In this case, your private port would be 25 but you public would be something else.
      Schedule: The times you want the port-forwarding to be enabled. Not applicable to all routers.
  • There you have it, some routers require a reset, but after that external visitors can visit your webserver!
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Running Linux on slow computers(7)
  2. [connection Sharing] Dual Wan Port Routers?(2)
  3. Wireless Router(11)
  4. Disabling Firewall On A Wireless Broadband Router(9)
  5. Dedicated Teamspeak 2 Server- Need Help(4)
  6. Port Status(2)
  7. How To Share Inernet Connection Over Switch(2)
  8. How Many Background Processes Do You Have Running(24)
  9. Status Bar Effect(5)
  10. Free Email Forwarding Service?(5)
  11. Running Vba Script In Excel(7)
  12. Server Behind Router(7)
  13. Run A Webserver From Usb-stick On Windows Guide(2)
  14. Any Harm Leaving Router On?(36)
  15. Printing In Linux(4)
  1. Is A Router Really Necessary?(14)
  2. Hosting A Webserver On Your Computer, If You Have A Dynamic Ip(2)
  3. Gaaah...my Isp Is Blocking Port 25!(1)
  4. Belkin's New N1 Vision Wireless Router(4)
  5. Need Help Running Aros On The Jpc X86 Emulator....(0)
  6. Dpserver(0)
  7. Beautiful Technology At Work - Inside A Hard Drive, While It's Running(4)
  8. Remote Avatar In Phpbb3(0)
  9. Good Portable Hand-helds For Rpg Emulation(s)/port(s)?(1)
  10. C++ Running As Web-app(2)
  11. Designing A Summer Running Program(1)
  12. Get The Current Running Machine Ip-c/c++ Coding(2)
  13. Free Web Hosting: (running With Scissors)(1)


 



- Lo-Fi Version Time is now: 23rd November 2008 - 12:25 AM