Network command for windows XP and latter versions

If you have ever faced a problem in your home internet connection and you made a call to your ISP call center first thing from them you here is please let us know your IP. You find yourself blank many time and you wonder what is that than they ask you to run many different command for different kind of checks and then mostly they give solution over phone only if it’s a problem in some setting. You might be wondering what those commands are and what’s usage of that command. Here I am posting a list of network command that is useful for all but if you are a network admin or a software engineer or doing software engineering I must say you should look at this once.


For display Connection Configuration run: ipconfig /all

It will show all the IP address of your computer for all the Lancard with its MAC ID. If your computer is getting IP from DHCP and it got some problem in getting IP from DHCP than it will not show you the IP address and it will give only a line like ipconfiguration and command will end.


For display DNS Cache Information and Configuration: ipconfig /displaydns

It will display DNS information of all the DNS with that you are connected. Run it once you will enjoy it.


For clearing DNS Cache run: ipconfig /flushdns

If you thing you are having problem in internet browsing or any other connectivity due to old DNS entry run this command it will flush all the old DNS entry and it will start work with new DNS entry. You might need to run “ipconfig /renew” command after this.


For Re-Register the DNS connections: ipconfig /registerdns

It will register the DNS record for all the network adopters of your computer. If your computer will find any problem it will give a report in Event Viewer.


For releasing All IP Address Connections if it’s DHCP run: ipconfig /release.

If you have a DHCP (Dynamic host control protocol) server that gives IP address to your computer dynamically it will release those IP from your computer.


For renew All IP Address Connections if it’s DHCP run: ipconfig /renew

It will get a new IP from DHCP server by releasing old one


For network Setup Wizard run: netsetup.cpl.

It will open network setup wizard to setup the network of computer. May be internet setting or LAN setting.


For testing Connectivity: ping

To test if your internet connection is working fine run the above command if you get a reply like

Bellow means you are connected with internet.

Pinging [] with 32 bytes of data:

Reply from bytes=32 time=363ms TTL=244

Reply from bytes=32 time=347ms TTL=244

Reply from bytes=32 time=346ms TTL=244

Reply from bytes=32 time=344ms TTL=244

Ping statistics for

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in mill-seconds:

Minimum = 344ms, Maximum = 363ms, Average = 350ms

If it says “Request time out” that means your internet connection got a problem.


For tracing IP address Route run: tracert

It will trace the route of IP of any website it’s especially for network people but may be useful for all. It will tell you the way how your connection takes you to your desired website from website server to your computer. If there is any problem in getting any particular website it will trace where the problem is and it’s a problem in DNS or ISP setting or website itself or in your local computer. For testing trace run “tracert”

First it will give you your local computer IP than your modem IP than the IP that is given by ISP to your modem and then it will go to your ISP router an then path depends on your ISP traffic routing mode.


For displaying the TCP/IP protocol sessions run: netstat

It will show you all the connection of your computer on TCP and IP connections.


For displaying Name of Computer Currently on: hostname

This command will show you the name of your computer.


Anonymous said...

great post..... really well

Clicky Web Analytics