how to assign web server and domain a public ip adress

13,745

For the domain name you need to point it to the ip address of your server. This is how domains, and the DNS system, work. They point an easy to remember domain name to a hard to remember IP address.

If you have a firewall running on your computer you need to allow it to access the internet.

If you are using a router you need to open a port (usually port 80) to allow connections to the server from the internet. You also need to set up a static IP address for the connection between your computer and the router, so that it always knows the IP address of the server. This is different from the public IP address you mentioned, this is your private IP address.

The web server may not need the IP address itself, but I haven't used Windows Server before. In some other web server software all you need to set are the port it should listen on (usually port 80), and the domain names it should answer for. That way when requests come in on port 80 it can see if the domain being requested matches the domain you have set up, and if so it looks for the file.

EDIT

Here's a link to a tutorial on how to add the domain to Windows Server: http://www.addictivetips.com/windows-tips/how-to-create-a-domain-in-windows-server-2008/

You can get your private IP address on a Windows machine by clicking Start > Run > type "cmd" and press enter > type "ipconfig /all" and press enter. In the list of info that is shown it should say "IP Address"

Share:
13,745

Related videos on Youtube

user1473404
Author by

user1473404

programmer suite or sweet programmer?

Updated on September 18, 2022

Comments

  • user1473404
    user1473404 over 1 year

    i have installed an ISO image of windows server 2008 r2 onto my VMware workstation, as a virtual server. I am trying to host my own web server for testing purposes.I have Internet service with sprint and i called them to obtain my public ip address. Now that i have my public ip address how to i assign it to my server?

    I also have a web domain name that i would like to point it at that web server. Do i give it the public ip address or do i give it the name of the server?

  • user1473404
    user1473404 about 12 years
    actually i have a access point not a router. will that make a difference?
  • Sherwin Flight
    Sherwin Flight about 12 years
    If it's like a modem, then you don't need to configure it to allow access to your server.