Ok By the numbers:
1. Lets assume you have a domain name. If not, they are usually around $10 / year.
Godaddy usually has decent prices.
www.godaddy.com/Since most domains are already owned, you may have to enter several names before you find a open one.
For this discussion we will assume your domain is
www.myDomain.com2. Your server usually listens for port 80. Some ISP's don't like you to set up servers, because they tend to be more active on the web. To see if it's blocked go to
www.canyouseeme.org/ and check port 80 to see if it's blocked.
If you use some other port like 8080 the user will enter the domain as
www.myDomain.com:8080For this discussion we will assume you are using a linksys router and you are using windows, and have Run Basic set to use port 80.
3. Your router assigns a IPv4 Address to each computer it talks to. Normally it's something like 192.168.1.100
To see what was assigned to your pc by your router go to the DOS prompt and type ipconfig.
If you are using windows/7 then click the start button and enter cmd.
4. We now know your ip and what number your PC was assigned by the router.
We need to tell the router what computer port 80 (the web service) will use so it knows where to send web request.
Get into your router. To do that, in the URL type 198.168.1.1 and enter your username/password.
Go to the "Accounting & Gaming" tab. This is usually called "Port Forwarding". In the "External Port" and "Internal Port" enter 80. Set the "Protocol" to Both. Now if your router has assigned your PC 192.168.1.100, enter that in the "To IP Address" and check Enabled on.
The web now know when someone enters
www.myDomain.com that it should go to the compute assigned to 192.168.1.100.
5. There is still one other problem. How does the web know where to route your domain. This is done where you bought your domain. If you bought it at GoDaddy then sign in to GoDaddy with your account. Set your domain to point to your IP. You can get support from GoDaddy if your not sure how to do this.
GoDaddy updates all the routers with your IP address.
Now when someone enters your Domain, it looks at the IP address setup in #5 and routes the message to your site. Your router then looks to see where to forward port 80 and sends the request to that computer..
Hope this helps