Home »
Networking
»
Network IP Addressing
Summary: Once you've been assigned a static IP address you'll need to configure the network-connected device manually to use it. We'll look at how.
|
I have a server and have been assigned a static IP by my ISP. How do I go about configuring my server to work on its assigned IP? |
99% of Windows internet users use what are called "dynamic" IP addresses. That means each time you connect to the internet, your ISP assigns you an IP address to use when you connect. The next time you connect, you might get a different address. If you're only connecting out to the internet, that's all you need.
If you expect people to connect in, say you want to run a web server that you want people to be able to find and visit, you'll most likely need a static IP address. A static IP is assigned by your ISP to you permanently, and identifies your server to the world.
The question is: once the IP is assigned ... then what?
•
If your computer is connected directly to the internet, meaning it's not behind a router or a firewall, it's actually pretty simple. In Control Panel, Network Connections, find the network connection that represents your connection to the internet. Most often it's labeled simply Local Area Connection. Right click on that and select Properties. Now click on the Internet Protocol (TCP/IP) item in the list (you may have to scroll down within the list to find it):

Now click on the properties button.
A default configuration will have both Obtain an IP address automatically, and Obtain DNS server address automatically selected.

Click on Use the following IP address: and enter the IP address, subnet mask, and default gateway information that your ISP should have given you. (If they did not give you all three, ask them.)
In most cases they will also give you IP addresses for the DNS servers you should use. Click on Use the following DNS server addresses and enter that information as well.
That's it. Once you "OK" your way out of those configuration dialogs, your computer should now respond to its assigned IP address.
If you're behind a router, things get a little more complicated.
The first thing to realize is that the static IP address should probably be assigned to the router. That will require configuring the router, much like we configured your server above. Exactly how will vary from router to router, but the principals are the same: you'll configure the router to not get an IP address dynamically, but instead you'll enter the IP, gateway, subnet, and possibly DNS information by hand, using whatever approach your router uses for configuration.
The "trick", if you want to call it that, is telling the router to pass on requests it receives from the internet to your server. It's typically referred to as port-forwarding. Once again, depending on how your router is configured, the general idea is that you configure it to accept requests on certain "ports" and direct them to certain computers on your LAN.
The port part is fairly easy. If you want to set up a web server, then you'll know that port 80, where http requests are handled, is the port you want to forward. But to where?
Much like your direct connection to the internet, you'll need to assign your server a static IP address within your local network, so that the router knows what machine to forward the requests to. Typically a router will tell you, or let you configure, the range of IP addresses it will assign from dynamically, so you'll simply want to choose an IP address outside of that range. For example my router at home is configured to assign dynamic IPs starting at 192.168.1.100 and up. So I've elected to assign a static IP on my local area network of 192.168.1.2 (192.168.1.1 is the address of the router on the local network).
So the rest is simply a variation on what I've already covered: configure that server with the static IP you've chosen, a subnet mask of 255.255.255.0 should do, the default gateway should be the router (192.168.1.1 in my case), and quite probably the router should also be your DNS. If not, use the DNS settings that your ISP assigned you.
Now configure the router to forward port 80 traffic to the static IP address you chose, and ... there you are. Your web server, behind a router, should be visible from the internet.
Port forwarding is actually very powerful, when set up correctly. In my case, I have port 80 traffic, for a web server, directed at one machine, Remote Desktop traffic (port 3389) is directed at another, and Skype (a post Skype selects randomly at setup time) to yet another.
Related:
How is my IP address assigned? Every device on an TCP/IP network must have a unique IP address. IP addresses are assigned, either automatically by DHCP, or by manual configuration.
What is DHCP? DHCP is the protocol computers use to request and receive a "dynamic" IP address.
How do I host my own web site? You'll be in for an education if you want to host your own web site, but we'll walk through a couple of the basic things you'll need to get started.
What's the difference between a Hub, a Switch and a Router? Hubs, switches and routers are all computer networking devices with varying capabilities. Unfortunately the terms are also often misused.
How can I access my Windows XP Machine Remotely? Windows XP Pro includes functionality to access the computer's desktop across a network. Remote Desktop must be enabled and configured properly.
Article C2370 - June 16, 2005
how can i get a static ip from my isp? I have to call the company or is there an other way to set it up from my computer.
31-Mar-2009
OK here goes, Wife removed my modem for my pc. put it on another in the house (worked fine), power went out and back on in this time. My pc was still hooked to my d-link router when power went out. Now my IP address is gone, seems to have copied the dlink or some other ip starting with 169.
I have tried everything to fix, even restored pc to factory default just like it was new out of the box. Still nothing, can someone help. I dont want to pay someone 200 dollars to fix something that I could do.. Ive done it all uninstalled everything and such
I use vista
Posted by: Keith at April 4, 2009 1:08 PMHi Leo,
My internet connection is behind a ADSL router and I configured my PC and router as said in this article, I assigned a static private IP to my NIC 192.169.1.2 and router Lan IP to 192.168.1.1 and configured routers WAN IP with static Public IP provided by my ISP and added my PC's IP address to port forwarding...
But, when I type my Static IP address in a browser my routers admin page is opening.
Any sugessions would be very much appreciated
Thank you
Posted by: Gideon at April 7, 2009 2:31 PMGideon
i have done this procedure many times. but after every restart the ip address is changing by itself, either it goes to automatic obtain or accesses with other ip address. so can you help in solving this. thank you.
Posted by: arvind at April 12, 2009 11:47 PMI am trying to make 2 computers in my room play on the same server in Diablo 1, i have a modem (Linksys or whatever) Apparently my problem is that diablo requires each person to have their own IP address to be on the same server, i have been tinkering around changing IP addresses and installing ITX and Protocols or whatever, but nothing is working, how can i figure out what numbers to put in the "IP Address, Subnet Mask, and Default Gateway" located in the properties of Internet Protocol? Please help me, this is absolutely frustrating =(
Posted by: Glutes at April 13, 2009 7:42 PMthank you very much i tried now the ip is static it worked well still its trail only i have to see for how long it will work.
Posted by: arvind at April 14, 2009 6:22 AMI am connecting DVR to the ADSL/router. I have obtained DDNS address by registering on the DDNS site. I am tring to view DVR from the ouside internet. I am unable to view. When contacted DVR manufacturer he said you have forward the port. DVR is having port 37474. Please suggest me how to do port forwarding with dynamic IP address. My ADSL/router gateway is 192.168.16.240.
Posted by: Deepak Thanekar at April 17, 2009 11:33 PMyou can go to ran type ipconfig and change
Posted by: Failon L Turner at April 22, 2009 6:29 AMthe ip adress for the nic or wireless to
a 111.111.111.111 and wait 2min this will change yourip address and some time fix and issue with
a bad address
Leo I read your comment on "How do I configure my static IP address but my question do I place router cd in my computer to change my setting ,I wish I could talk to you ,I mean my wife and I share the same router with both computer I want to set up my computer with a static IP address to be a server with my radio station using my computer.We placed the linksys cd in her computer to set up everything ,what do I have to do to change my IP ADDRESS to a static IP address its right now a IP address dynamically with Bell fuse I NEED YOUR HELP jOHN
Posted by: albert matthews at May 2, 2009 1:30 AMI have 200 Pcs on lan and having 2 DSl Lines that is shared by all pc's on lan and I have taken a third DSL line for the use of some particular PC's on Lan and How to restricted the other PC's of Lan to access this third line and give access to the PC I wish to.
Posted by: Moid Khan at June 24, 2009 11:48 PM