Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to set static IP in laptop to be used with wireless network ? I am running Windows 7 Ultimate.

share|improve this question

First, I am going to assume that you are on a home network and that your router hands out DHCP (automatic) IP addresses. If not, you MUST contact your network administrator, or you will cause problems if you introduce a duplicate IP address on the network.

Second, this seems like an easy question, but there are a few things you need to do in order to really make sure you are doing it right. In practice, even if you don't, in a home network, you probably won't experience problems since the odds of a duplicate IP are low, but it is still very possible, so it is easier to do it right. I realize the following seems a bit long, but it is fairly easy to follow, however, if you have questions, please post back and I will answer them.

Next, you should try to figure out what IP addresses your DHCP server is handing out so you pick an IP that it will not give to another computer later. The best way is to go into your router as this is probably where you are getting your DHCP IP address from. Usually it is somewhere in its LAN settings, or near them (check your manual, or ask a separate question here with your router model listed), you can find the range it is handing out. Often it is x.x.x.100-x.x.x.254.

If that is not easy for you, or you don't know the router's password, we can make an educated guess: You can open a command box, and do an IPCONFIG /ALL. That will give you your IP address and default gateway (usually your router). Also take note of your DNS servers, as you will also need to enter them below.

Pick an IP address that is not your router's address, and add 20. So if your router is, then pick The subnet mask for a home network is almost always (it is the same as your IPCONFIG/ALL), and the gateway you enter when you set the static will be the same as in the IPCONFIG/ALL. The only caveat is that if your IP address when you did the IPCONFIG/ALL is very low, like or near that (we are only really looking at the last number), then the DHCP range being given out is low, so pick something like Whatever IP you pick, open a command box, and do PING (or whatever IP you pick to be your static).

So now that you have how to figure out what IP to use, here is how to implement it. Go to Control Panel>Network and Internet>Network and Sharing Center>Change adapter settings and right-click your Wireless Network connection. Double-click Internet Protocol Version 4 (TCP/IPv4), and enter your settings as in the sample screenshot based on what you came up with in the first part of the question. I added as another DNS server, which you can use if your IPCONFIG showed only the router, otherwise, if you had two DNS servers listed, use them.

enter image description here

share|improve this answer
I asked the question because I always get an error something like 'The connection between your access point, router, or cable modem and the Internet is broken' So I would not access the network. If I restart the system, it would be OK. So will the answer solve this issue ? – Muhammed Rauf K Jul 19 '11 at 2:47
To be honest, that is what you should have asked...and I would need more exact information as to what you are doing exactly (every step). Right now, I don't even have the idea where and when you are getting that error message. – KCotreau Jul 19 '11 at 3:21
If you would, please upvote this, and mark it as answered, because it really has been answered. Then ask the real question separately with as much detail as you can, and I will gladly look at it. Right now, I just don't have enough info to try here. Add a screenshot or two if you can. – KCotreau Jul 19 '11 at 3:23

Start > Run: ncpa.cpl

Double-click on the IPv4 settings, then enter your desired IP in the top box. Click in the subnet section and that should be filled in by itself.

Make sure to use an IP that is not used by anything else, and that includes things like Xbox or Wii or anything else that has internet access.

share|improve this answer
Are you talking about Windows XP ? – Muhammed Rauf K Jul 17 '11 at 6:58

Here are step by step instructions:

The only problem is the IP is bound to the network adapter and not the wireless profile, so if you change wireless profiles, you may need to change it back to automatic, to say connect to the coffee shop's WiFi.

share|improve this answer
that is the big problem... – kokbira Jun 8 '12 at 20:48

Any half-decent router that acts as a DHCP server (the part that dishes out IP addresses) should have some configuration option that allows you to reserve specific IP addresses for specific MAC addresses (MAC = Media Access Code, i.e. a unique hexadecimal identifier for each piece of network hardware, e.g. 01-23-45-67-89-AB).

You can find the MAC for your Wireless adapter by examining the output of 'ipconfig /all'.

My pretty basic ISP-provided NetGear DG834 family router has this capability.

The advantage of this method is that your WiFi adapter will continue to work normally with other DHCP networks, e.g. the perennial coffee shop.

The same considerations as KCotreau mentioned in his answer apply, i.e. try and allocate a separate IP address range for your DHCP server and your statically assigned IPs.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .