Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

How Do I Configure My Static IP Address?


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?

Become a Patron of Ask Leo! and go ad-free!

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):


Local Area Connection Properties

Now click on the properties button.

A default configuration will have both Obtain an IP address automatically, and Obtain DNS server address

Internet Protocol Properties

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.

The question is: once the IP is assigned … then what?

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 and up. So I’ve elected to assign a static IP on my local area network of ( 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 should do, the default gateway should be the router ( 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 port Skype selects randomly at setup time) to yet another.

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

73 comments on “How Do I Configure My Static IP Address?”

  1. When assigning a static IP address to a server on your LAN, behind a router, there is more to it than simply chosing an IP address outside of the DHCP range given out by the router. It also should be within the same subnet so that other computers on your LAN can see the server. Subnetting is a whole ‘nother subject, but in the example given, had the server been assigned or it would not have worked. That is, the static IP has to begin with 192.168.1 (in this particular case due to the subnet mask).

  2. I have a wireless router, and it does not allow other users to connect to my computer e.g. say i have a gaming server up. no one out of my network can connect to my server, how do i foward my ip or allow other clients to join my computer

  3. You need to open up the ports that the gaming server needs on your router, and indicate which of your machines that traffic should go to. It’s called “port forwarding” in most cases.

    I can’t be too much more specific than that because the ports needed will vary based on your game, and how you set it up will vary based on your router. But hopefully documentation for both will allow you to get there from here.

  4. I set up my router using a static IP address from my ISP. My PC works fine when I set up the dailup connection properly, but is there a way to set up a wireless laptop? Once I change the router to static IP I can’t connect through to the internet with the wirless laptop. I see the network and everything else is fine…Can you help? THANKS

  5. Well, it’s hard to say because I don’t have a clear picture of what you’ve set up.

    Your router should be using a static IP from your ISP on the WAN connection. But you want your computers to use dynamic IPs, which would be provided by the router. Make sure that the router has DHCP enabled for the LAN side. That’s actually exactly how I operate here at home.

  6. Sir,
    I have a problem with Ipconfig.I want to activate and know the Ip configuration for my stand alone home PC for a software installation.But when I use the ipconfig command in the command prompt, System return as follows:-
    Media state………….Media State Disconnected..
    So I am not able to retrieve Ipconfiguration..
    Please Help me in this regard.
    Josil Mathai

  7. Josil: “media state disconnected” means that the cable is unplugged or the wireless has no connection. ipconfig shows information for an active conneciton.

  8. I currently have a wireless lan at home with my sister’s computer being connected to the wireless adsl router via her computer’s ethernet port and my computer connected via its wireless card. She used to get the error message “Shareaza may experience poor download performance as you are behind a nat router or firewall”. According to the shareaza help site I configured zonealarm pro, set up a static ip address on her comp and enabled port forwarding on her router so Shareaza ( a p2p application like kazaa) could function properly which it did. Though the internet works fine on my computer i get the same message she used to get so again i configured zone alarm pro and made my ip address a static one….how would i do port forwarding since my comp isnt connected directly to a router? or dont i have to do port forwarding to fix this error? or is port forwadding not possible on a computer which has a wireless thernet card?

  9. Port forwarding happens on a router. If there’s no router, there’s no forwarding required. If you are sharing the router, a forwarded port can go to only one computer.

  10. Hi Leo,
    I bought a netgear wireless router with 4 port switch, I have sprint dsl and I know I have static Ip, but either I have really bad luck or my dsl modem is odd, because I can’t ever get into the router settings to change it to static ip, I’ve tried linksys aswell with the same if not worse results, any suggestions otherwise I’m just gonna gice up, I don’t know what else to do!
    Derek C.

  11. Dear Leo,
    I have a question, i have an ADSL service with a dlink 310 modem(lan-Router). the isp gave me a username and password, i used it to connect, but at the same time i could connect to my isp using ip configuration without need to log on, i uses as my computers ip, and as server ip, for dns server, no i changed my service to 512k, but my aacount with username and password has only 5GB each month, i can not connect to internet using IP configuration, if i could do that like before, so i could download more than 5 GB, what can i do? why i can not connect with ip anymore? how can i detect the ip adresse that i can put in lan settings?
    Sincererly yours,

  12. Hi Leo.I have a nintendo DS.I was trying to use the wi fi connection online.I need a subnet mask.Do u know how I can get one?

    Thank you,

    Hash: SHA1

    Not a Nintendo user, but if it uses DHCP, then ist should get the subnet mask
    automatically. Otherwise I’d just try


    Version: GnuPG v1.4.6 (MingW32)


  14. I was phished and my email was being read by someone I don’t know. I tried to change my ip by doing the following step above, but my computer will not change it. I went to start, run, cmd, ipconfig/release, then to tcp/icp and then added my own ip address. closed the box and then went back in and then let to computer to assign ip automatically. I went back into cmd, release all and sure enough my ip was still the same. Any suggestions? I am connected to an at&t modem.

    Hash: SHA1

    Your IP address probably has nothing to do with your being phished or your
    email being read.

    Your IP address is *assigned* to you, you don’t pick it or force it to change.
    But like I said, that probably has little to do with the situation you’re in.


    Version: GnuPG v1.4.7 (MingW32)


  16. For those of you looking for your static info, gateway, etc, open a command window (start| Run| CMD|
    Type “ipconfig” in the new window. There’s your info.

    This may not work in all situations. YMMV, as always.

  17. I am having issue with my static IP address. I followed your instructions and was able to connect to the internet. I am using Windows XP. However, it seems that every other day my computer resets the IP protocol to “obtain an IP address automatically” and I have to manually input the static IP address along with all the other subnet mask and default gateway addresses. I can’t figure out anyway to get it to stop. Every other day like clockwork it simply resets itself and I have to reconfigure the address. Any ideas?


  18. Hi Leo,
    The article is simple and easy to follow.
    I have couple of questions:
    1. What if there have to be two web servers behind the router?
    2. is port forwarding any way connected to NAT concept?

    Thanks In advance,

    1) it can be done, but only one web server can be on port 80, the other must be on some other port. That means configuring the router to forward that other port, configuring the server to listen on that other port, and users to access the web site explicitly specifying that other port (as in

    2) It’s part of the NAT concept. One one site you have local IP address, and on the other you have a public IP. You’re translating IP addresses for all packets that cross through the router, regardless of direction.

    – Leo
  19. If you guys have a dynamic ip address and want to host a server…

    Check out this site allows you to create a few names for free. If you download thier client it will update your address to the domain name.

    I host 2 domains using 1and1, and use DynDNS to tell everone my new address.

    My Dynamic DNS name is

    then I create cnames using 1and1 to point to that DNS.

  20. In my medical office we have no server. We have a VoIP phone system which provides us a T1 dedicated line out to the Internet. We also have an EMR system that we use for patient records. We chose to have the vendor of the software house the server on their end since we have no internal IT dept. So the vendor provided a Juniper router to allow our computers to connect to the software. Now the ISP for our VoIP has sent out a letter saying that they are giving us a new static IP address and that we need to make those changes. I will pass the letter along to the software vendor to make those changes to the router the provide for us, but do I follow the steps in the article above to make the changes to the all the office computers?

    I’m guessing not, but it really depends on how that router was set up. You’ll need to check with that vendor.

    – Leo
  21. I have a cctv sentinel security system and i was thinking about getting a static ip so that i could view my store from my home. how do i go about doing this. Is this the same as the article says , because there is a special program it uses to see what the camera sees.

    If you’re talking about a static internet IP address, that’s something that your ISP gives you. You’ll need to talk to them.

    – Leo
  22. Hi 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 and router Lan IP to 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

  23. 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

  24. Dear Leo,

    I need your help and advise, Firstly, I call my ISP provider in order to get static IP address so they told I have to pay extra fee every month. Secondly, is there anyway I can get static IP address for fee?

    I would be very happy if you could help me please,

    It’s totally up to the ISP – if they charge for it (most do since it is extra work for them), then there’s no way to get it without paying.

  25. hlo.

    my connection is dial up. can i change it to static ip? thx

    Probably not, but you’ll have to check with your ISP.

  26. Yes, is there any static ip adresses i can just type in ?

    Nope. It must be assigned by your ISP (for direct internet connections) or you must carefully configure your local network to support it. It’s not just something you type in.


  27. I have four friends in various cities. All of them have Internet connection. In each & every friends have above two computers. now we want work in same single system (like server in every workgroup ). how we configure our routers Ips to join all of my friends in single system.

    You don’t. At least not directly. You might use something like Hamachi to set up a virtual private network.


  28. Morning Leo,
    I was told by my Time Warner that I am not able to log on to the internet becaause my IP address is not working. Is this something I can do by myself or should I just take it down to a computer repair shop.
    Best regards,

    Unfortunately “IP address is not working” doesn’t really make sense, so I’m not sure what the problem actually is.


  29. Here’s a brief rundown on getting a static IP:

    Most ISPs know that a static IP is far more useful than a dynamic IP for setting up remote login, web servers, mail servers, CCTV systems, etc.

    Accordingly, they sell inexpensive consumer plans with dynamic IPs, and expensive business plans with Static IPs.

    There is no way to ‘convert’ your dynamic IP to a static IP, since the IP is provided by your ISP.

    BUT – there is a way to link your home computer to a service called dyndns, which gives you a web address that connects to their software on your computer, updating the IP address as your ISP changes it.

    This is what I use to remote into my mac with my iphone from work, and it works like a charm.

  30. Sir, my brother just fixed our internet a year ago… he used an

    IP Address:
    Subnet: 255, 255, 255, 0
    Default Gateway:

    I changed it, without knowing that I can’t revert it back.

    when I try to revert it back, it tells me that the static IP is being used, that I should choose another one, what should I do to gain back that IP address?

  31. You make things look simple by giving simple answers that uninitiated like us would understand… you’re cool sir! really cool… thanks

  32. So if you dont have a router you dont need a static ip address?

    Whether or not you have a router has nothing to do with it, really. Some situations require static IPs, but most people rarely need them.


  33. @”Some situations require static IPs, but most people rarely need them.”
    Obviously you have not heard of ADSL, everyone using ADSL requires a router

    Which has nothing to do with whether or not static IPs are required.


  34. Hello Sir,
    I have a static ip address that i need to access from the internet. I’m able to access it by giving the ip address the only problem is I want to associate a dns to this ip. eg ; when I give the ip address I’m able to ping it from other machines but when I give the associated dns entry like or I’m not able to ping.

    192.168.x.x addresses are addresses on your local network and cannot be routed to or connected directly over the internet or DNS.


  35. I have a small office network. One Computer acts as the file server for the office. It does not go on the web. How do I set its STATIC address so its the same each time it reboots and so all the PCs and MACs on our network always see it?

  36. hmn, re: manually configuring static IP. IP Address has been entered in the TCP/IP Properties “Use following IP Addresses” and DNS fields, as described, os windows xp svc pk 3. When i test the connection it fails with “no PPP configuration” error. Sir, may i ask, is it required to append/register DNS suffixes in advanced settings? do the DNS and IP have to be assigned by the dialup ISP or is it possible to use the Server address and Client IP located in the Status Details tab at the time of connection? thank you for your help.

  37. My home network includes a combination router and DHCP server. For remote accessibility purposes, I’d like to assign static IP addresses to some of my computers…but I want to make sure that these same devices are using the most efficient and up-to-date DNS servers–the addresses for which are dynamically provided to my router via my ISP.

    When a computer is configured to use a static IP address, the DNS server addresses must be manually assigned. Why can’t my computer have static IP addresses but dynamic DNS servers?

    How does everyone else handle this? Do you occasionally check to see if your DNS servers have been updated….and then update your computers accordingly?

    I’ve yet to see this question addressed in any articles that describe how to configure static IP addresses.

    Typically, yes, if you configure static IP addresses you also take on the role of configuring the proper DNS servers. I don’t see a huge advantage in trying to keep the on the so-called ‘latest and greatst’. You can try setting them to the IP address of your router, as some routers will act as a DNS gateway.


  38. I am connecting to an integrated voice/data T1 circuit from at&t. They are providing a router that breaks out voice channels to my Avaya phone system and a cat5e for internet access. Do I connect the data cable to my firewall or do I connect it to a port on my switch? If it’s firewall, do I need to configure anything on my firewall? we have a similar setup using a different provider but it was set up before I was with this company. thanks.

  39. @Small Fish, dude, basing on experience, you are the one to set up the LAN side, so you will be the one to decide if you want to connect a firewall or a switch or an internal router behind the one provided and managed by at&t. i know for a fact that you should connect @ the fast/gigethernet 0/0 for data connection, and it is usually not turn up yet, so you need to call the ones managing your service and ask them to turn it up/admin up it for you, ask as well for the useable ip addresses, default gateway and DNS servers, for you to set your LAN. Thanks and hope this helps.

  40. What if I have two web servers on the same router. Will they share port 80 and the traffic will know which machine to goto by the external IP address? Or do I need to change the http port on one of the servers? If so how?

  41. @Vijay
    A static ip address is something you would have to order from your ISP. Ask Leo has no way of doing this for you.

  42. Thank you for the explanation. While the actual act of setting IPs is easy to find out, many tutorials fail to answer the question – ‘why?’ Yours is the first explanation that adequately answered this question for me

  43. I get all this, the final question I have is setting up the router when I have a registered domain being hosted (by maybe). Do I uses GODADDY’s DNS servers, or the ISP’s DNS servers?

  44. @michael
    Those two things are unrelated… You domain’s IP and your home Internet IP. For your home router you set it up following you ISPs instructions. And don’t try to use your domain’s IP address on your router. Unless you don’t want an Internet connection, that is!

  45. Hlo respected buddy I have a problem in my airspan wimax device setting .my isp gateway adress is in static mode but I hav changed it to bridge mode and its wan and lan etc appear and wan and lan ip was same then I tried to save the setting but its says lan ip and wan ip cannot be same then I change the lan ip and add few things of lan and saved and reboot it for change and I can’t access my ip and open the login page of airspan wimax and internet doesn’t work I forget my changed ip of lan and when I directly connect he ethernet cable to my pc it shows unidentified network and no internet access please help me to open the login page my wimax device doesnot have RESET buttom and I have tried the ipconfig command from command propt. PLEAse SIR HELP ME I am IN Great trouble plzplz plz

  46. Hi, I have a question?? If i obtain a static ip address, Is it possible to connect 12 computers in different cities across india??? The main objective is i will have to track all the systems which has a common hotel software in all 12 computers. Please advise.

  47. Hi Cocco I know I am not Leo but from my understanding it sounds like your connection is timing out and when you turn everything off (reset) you are basically restarting your timer so 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 and make sure that in the properties it is not set to timeout after a certain amount of time (TCP/IP properties) I hope that this helps but something else you could try is when it happens instead of doing a manual reset do as I said above go to CP then to NC then your internet connection and use the troubleshoot problems options that can diagnose and repair a lot of the most common problems. Good luck to you!

  48. I am in Toronto ( remote site) and I am connected to the main office by a 9611 avaya IP phone. At the main site (Jamaica) is an avaya ip office with a static ip address. My isp at the remote site is bell and they are using a bell 2000 router. At the moment I can only receive calls if I call the phone would ring at the destination but there is no audio either way. If they call the call quality is perfect.

    Prior to switching to bell I was using rogers as my ISP and the phone was perfect both ways. I am not sure what type of router they were using but it worked. Need to get my phone working again can you help?

  49. I have got a domain using server 2012 r2 and on the same saver I have got my dhcp server configured. My dns server configured but pointed to the domain server that is using the same ip address as that of the domain server. I have got 3 clients computers added to the domain. I am planing to bring my Internet connection from an ISP that uses ADSL line. All the IP addresses on my domain network are private ip address I just picked and is work just fine. Now I would want my domain to access the Internet same time I would want the DHCP server configured on my server to take charge of this. The question is how can I configure the dhcp to play around and ensure my computer with the domain are able to access internet despite there are been assign with privat ip from my dhcp server?

  50. Mr. Leo
    please guide me , i have to give static ip to one of my client , and my whole network run on dhcp , then how we configure this thing , so my client get direct access to my network ??
    my lease line connected in modem then one Ethernet port connected to switch , then where i hv to put next machine to use static ip ?

    • You would have to contact your ISP in order to get a static IP. It’s not something you can configure on your computer. It’s normally a service you have to pay for.

  51. Hi
    Whenever I try to open the Internet Explorer on my laptop, internet connection breaks and also disconnects my outdoor ADSL modem so no one can use Internet, either.
    As soon as I turn my wireless switch off, Internet access is possible for others.
    Is anybody familiar with this error???????????

  52. hi
    i have dlink router dir- 506l and mts dongle ac2746 and i connect to my dvr h264 cctv camera through online internet but the online internet ip address is not save because if i disconnect to the internet then every time the ip address is change so how can save it. please solve my problem as soon as possible.

  53. sir,
    we just assigning a static ip address & subnet mask,gateway also .finally i click ok button now its showing the system restart opation.after restarted the my system and i open network sharing option but ip address assigned to be automatcally. many times i will try but same msg is showing.kindly adwise me..

  54. Dear sir I buy a wisq2300l outdoor CPE. But I can not software set up. Because configured the host system with static IP on the 192.168.1.x(x could be 10-254). What is the x. My 2nd questions is using a web browser access when web browser log in then web page not available this write show my computer. Pls help me.

  55. Hello,
    I’m trying to connect my iphone to the home network wifi but i’m unable to do so.
    Can anyone tell me exactly what i should enter if i want to establish a static ip address .
    IP address:
    Subnet mask:
    i have no clue about how to do so
    Please help.

    • You shouldn’t have to. You should allow it to configure automatically and dynamically. If that doesn’t work then there’s something else wrong. Unfortunately it’s impossible for me to diagnose.

  56. Dear Leo
    I am using 2Mbps internet leased line in my organisation My isp gives us 4 static IP in single line how can i distribute it to
    1) one ip for firewall
    2) second IP for wireless router ( 1st floor)
    3) third IP for wireless router ( 2nd floor)
    4) fourth IP for wireless router ( 3rd floor)
    is i have to use Ethernet switch to distribute internet leased line. if yes which switch is good for use (without doping speed)
    and if No then please tell me which instrument i have to use. Please Help me


  57. i need to assign static ip address to one of my system within a network . which is connected by using beetel 450tc3 wifi route and to common 8 port switch… from that i connecte 8 systems.. i wann to assign static public ip to one of my computer.. i wann acess data using tha public ip to 1 system where i assigned my static ip. and other system should get internet acess.. how to configure this

  58. I have a server , when I set it with local static IP it dose access the internet, cannot open any webpages, but when I set it to obtain ip it works fine, although the static ip is the same ip issued by the router, I also tried and IP outside of the DHCP set in the router
    what could be happening ????????????????

  59. well im in tijuana mx i need to setup my static ip address and no one knows… what do i need info as ..besides my ip static address???
    ty in advance…

  60. I have a zosi security system/NVR. I cannot get it to connect to network. Get message that dcup not found or gateway unreachable.
    In this situation is a static ip mandatory? .

  61. I’m troubleshooting a problem, and one solution is to set a static IP address…I’m not exactly clear what all this means, but my main question is: Once I finish troubleshooting, should I switch back to “Obtain IP address automatically?”

  62. I have about 8-9 machines (computers & a printer) behind a router. ISP gave me a static IP to use (I ordered it). Is it possible to assign only one machine (of those 8-9, I have), which I need to access from outside network, a static IP address while all the remaining machines get dynamically assigned IP’s? If yes, how do I do I configure the network?



Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.