4

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

4 Answers 4

5

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 192.168.1.1, then pick 192.168.1.20. The subnet mask for a home network is almost always 255.255.255.0 (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 192.168.1.2 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 192.168.1.250. Whatever IP you pick, open a command box, and do PING 192.168.1.20 (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 8.8.8.8 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

3
  • 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 ? Jul 19, 2011 at 2:47
  • 1
    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, 2011 at 3:21
  • 1
    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, 2011 at 3:23
2

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.

1
  • Are you talking about Windows XP ? Jul 17, 2011 at 6:58
2

Here are step by step instructions:

http://www.howtogeek.com/howto/19249/how-to-assign-a-static-ip-address-in-xp-vista-or-windows-7/

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.

1
  • that is the big problem...
    – kokbira
    Jun 8, 2012 at 20:48
0

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.

You must log in to answer this question.

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