How to Find an IP Address With CMD

Techwalla may earn compensation through affiliate links in this story.
Image Credit: Jupiterimages/Pixland/Getty Images

Using the Windows command shell (CMD.exe) to configure networking is a more complex undertaking than using the GUI (Graphical User Interface) equivalent. Command shells are not intuitive and can be intimidating. However, the command prompt also affords access to more complex information than is found in the adapter properties dialog. Here, information can be found on IP addresses, both IPv4 (Internet Protocol version 4) and IPv6 types, all in one stream of information.

Advertisement

Opening the command shell

Step 1

Click the Start button, then select "Run."

Video of the Day

Step 2

Type the following into the dialog box: "cmd.exe". Do not include the quotes.

Advertisement

Step 3

Click "OK."

Working with ipconfig

Step 1

Type the following into the command shell: "ipconfig /all" Doing this will give you a list of network adapters. Use the scroll bar to read through the adapter names. Find the adapter you want to work with.

Advertisement

Step 2

Type in the following: ipconfig /release "adapter" Replace "adapter" with the name of the adapter you want to work with. Make sure to include the quotes around the name of the adapter.

Advertisement

Once you've run the release operation, the adapter will be without any network info.

Advertisement

Step 3

Run the following: ipconfig /renew "adapter" Again, replace "adapter" with the name of the adapter you are working with. This will tell the adapter to look for new network info.

Step 4

Run "ipconfig /all" to confirm the adapter has picked up new network info -- including a valid IP address.

Advertisement

Advertisement

Report an Issue

screenshot of the current page

Screenshot loading...