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

I want to make a small LAN, not connected to the internet.

I open control panel/networking and find my Ethernet adapter.

I unchecked IPv6 and click on IPv4 and select "Properties".

I gave a fixed IP address of butI can't ping

And a program I wrote can't access a MySql database on that address ... I am using Xampp, the program can access the database if its connect string says localhost, not Also, I can access through PhpMyAdmin and invoking MySql from a Dos box - so, MySql seems to be ok

Wondering why I can't ping, I run IPCONFIG and my Ethernet adapter's address is the old one, not the new fixed one that I assigned

[UPDATE] I haven't attached a router yet, it's a stand-alone PC. Thanks for pointing out that the router, when added, will probably be so I should probably make my PC

but my point here is that I can't ping what I thought I set as my static IP and, indeed, it does not show up when I run IPCONFIG - I get the previous value.

share|improve this question
Can you ping the previous value? Have you checked the Alternate Configuration tab in the TCP/IP properties dialog? – JoshP Jun 19 '12 at 15:33
up vote 1 down vote accepted

I have run into some Windows 7 installs that have icmp echo requests (ping responses) blocked in the firewall by default.

Check your firewall settings and add the icmp exception if you need to.

Also, there is more to setting up a static IP address than just the address. Your subnet mask also needs to be correct. It should probably be if you've never had a reason to set it otherwise.

Also, like some others have said, verify that the static IP that you assign to your Windows 7 install is actually unique on your network. Most routers do indeed default to

Are you even using a router? If there's no internet access and you only want a basic LAN setup, you wouldn't need one... a switch would suffice.

share|improve this answer
+1 I haven't attached a router yet, it's a stand-alone PC, but suspect that I will need to change my PCs address to Thanks. And, yes, the subnet mask is correct – Mawg Jun 15 '12 at 1:48

You do understand that localhost is not right?

I am going to guess is that your computer's local interanet address is NOT that likely is your router.

localhost is the local computer. If the database is stored on the local computer you should use localhost instead of an ip address.

You really should give us more detail though. I just assume you have a router since 99.8% of routers default address is

share|improve this answer
The local address should be, because Mawg configured such an address in the network adapter Properties. – grawity Jun 14 '12 at 11:47
@grawity - is set to localhost because of an entry in the hosts file. Which exists unless removed or modified. – Ramhound Jun 15 '12 at 0:47
Yes, I know that is (by default) localhost. I want my PC to have address and for it and others to be avble to address it that way. Uou may have a good point about router default IP address, so many I should make my PC - but my point here is that I can't ping what I thought I set as my static IP and, indeed, it does not show up when I run IPCONFIG - I get the previous value. – Mawg Jun 15 '12 at 1:43
@Mawg - To a computer that is assigned the local loopback address and` is itself. If it does not show up in IPConfig then you are doing something wrong. You don't need the computer to reply to its own local ip address using localhost would be a better configuration. If attempted to ping it should be reachable – Ramhound Jun 15 '12 at 10:45

Probably you have fixed on your router, or your ip range it is different.

share|improve this answer
Even if the router already has assigned, there's nothing that should prevent the same address from being assigned to the computer. Windows would display a warning about duplicate addresses but accept the configuration. – grawity Jun 14 '12 at 11:48

You must log in to answer this question.

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