How to route a request from routerto my server

phani20 asked 2 years ago

Hi all:

I have a DSL connection and a router. I connected 4 desktops to the router. The IP addresses I get is 192.168.1.2 etc. Using 'whatismyip' service I found out the external IP (59.97.224.158).

Now I am hosting web services on one of the desktops. So -
1. how should people outside my network access this service?
2. I understand that [B][url]http://192.168.1.2/My[/url] Service/service[/B] would not work. Am I correct?
3. Should people outside the network access the service using [B][url]http://59.97.224.158/My[/url] Service/service[/B]?
4. How do I route the request to correct desktop?

Appreciate your help!

Regards
Phani

1 Answers
Cody Robertson Staff answered 2 years ago

There are 2 different IP addresses. The WAN (Wide Area Network = Internet) and LAN (Local Area Network). The 59... address is the WAN. Each of your machines has its own address 192.168.x.y

In order to offer a service from your machine to the whole world, your router has to do know to which of your local machines to send the data. This is called 'port forwarding' and there will be a control panel on your router for this purpose.

I've written an article about this: [url]http://clanmills/articles/portforwarding/[/url]

I recommend you get a Dynamic DNS name. My WAN IP address changes every day however my dynamic name 'clanmills.homedns.org' is fixed. There's more information about this in the article.

Know the answer? Login or sign up for an account to answer this question.
Sign Up