Thursday, July 27, 2006

Port Forwarding

If you have a server inside your LAN and you hope to access this server from WAN (ex: internet), unfortunatlly, you will not be able to access this server with out making some changes to your router configurations. So that, any requests comes from port 80 will be forwarded to the server LAN IP address.

For example, suppose you server local IP address is 198.65.1.144, and WAN address: 81.44.1.70. In your router configuration, forward any request comes on port 80 to 198.65.1.144. In this way, you will be able to access the server from the internet by addressing: http://81.44.1.70

Of course this not just for port 80, for example, you server may receives the HTTP requests on another port, say 8080. So, you do the previous steps as it is but with this port number. And you will be able to connect to server from the internet by addressing: http://81.44.1.70:8080

1 comments:

Mohammed Nour said...

Thanks Ahmad for your comment!

Yeah this is true, I have googled to find more information about UPnP and it's really interested protocol. You may find more about it here:

http://www.microsoft.com/windowsxp/using/setup/expert/crawford_02july22.mspx

I just explained a feature in routers which may many of us didn't know before and so important to show up your server on the internet.