Get IP address using command line

by admin on November 16, 2010

We can find the ip address of a system from windows command line. We can use the built in command ipconfig for this. This command has different command line switches. But just running ipconfig will show the ip address for each network adapter installed on the system.

If the system is connected to a DHCP configured network then you can release the ip obtained from DHCP.

You can find the command below to do this.

ipconfig /release

The above command works for IPv4. To release IPv6 address the command is given below.

ipconfig /release6

To flush the dns cache stored on the local system

ipconfig /flushdns

To display the entries stored in the dns cache

ipconfig /displaydns

{ 0 comments… add one now }

Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: