How to Find Your Local IP Address from Command Prompt: A Step-by-Step Guide

How to Find Your Local IP Address from Command Prompt: A Step-by-Step Guide


In order to troubleshoot network issues or to configure certain network settings, it is essential to know your local IP address. Your local IP address is the unique identifier assigned to your device on a local network. One of the easiest ways to find your local IP address is by using the Command Prompt on your Windows computer. This article will guide you through the step-by-step process of finding your local IP address using the Command Prompt.

Step 1: Open the Command Prompt

To begin, you need to open the Command Prompt. You can do this by pressing the Windows key + R on your keyboard to open the Run dialog box. Then, type “cmd” and press Enter. The Command Prompt window will open.

Step 2: Enter the Command

In the Command Prompt window, you will need to enter a specific command to retrieve your local IP address. The command you need to enter is: “ipconfig”. Type this command without the quotation marks and press Enter.

Step 3: Locate your Local IP Address

After entering the “ipconfig” command, a list of network configurations will appear in the Command Prompt window. Look for the section titled “Ethernet adapter” or “Wireless LAN adapter” depending on your network connection. Under this section, you will find the line that says “IPv4 Address”. The numbers next to this line represent your local IP address.

Step 4: Take Note of your IP Address

Once you have located your local IP address, make sure to write it down or take a screenshot for future reference. This IP address is important for various network tasks, such as setting up a printer or configuring port forwarding on your router.


Finding your local IP address using the Command Prompt is a simple and straightforward process. By following the steps outlined in this article, you can easily retrieve your local IP address and use it for various network-related tasks. Remember to always keep track of your IP address, as it can be useful in troubleshooting and configuring network settings.


1. How can I find my local IP address from the Command Prompt?

To find your local IP address from the Command Prompt, you can use the command “ipconfig” or “ifconfig” depending on your operating system.

2. What is the Command Prompt?

The Command Prompt is a command-line interface used in Windows operating systems to execute various commands and perform tasks using text commands.

3. How do I open the Command Prompt?

To open the Command Prompt, you can search for “Command Prompt” in the Start menu, or you can press the Win + R keys, type “cmd”, and press Enter.

4. What is an IP address?

An IP address is a unique numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. It serves as an identifier for the device and allows it to communicate with other devices on the network.

5. How is the IP address assigned to my device?

The IP address can be assigned to your device either dynamically or statically. In a dynamic IP address configuration, the IP address is obtained from a DHCP server, while in a static IP address configuration, it is manually assigned to the device.

6. Can I find my local IP address from the Command Prompt on a Mac or Linux?

No, the “ipconfig” command is specific to Windows operating systems. On a Mac, you can use the “ifconfig” command, and on Linux, you can use the “ip addr” or “ifconfig” command to find your local IP address from the Terminal.

7. Is the local IP address the same as the public IP address?

No, the local IP address and the public IP address are different. The local IP address is assigned to your device within your private network, while the public IP address is assigned to your network by the Internet Service Provider (ISP) and is visible on the internet.

8. Why do I need to know my local IP address?

Knowing your local IP address can be useful for tasks such as setting up port forwarding, configuring network devices, or troubleshooting network connectivity issues within your local network.

9. Can I change my local IP address?

Yes, you can change your local IP address by either requesting a new dynamic IP address from your DHCP server or by manually assigning a new static IP address to your device. However, it is important to ensure that the new IP address is unique and compatible with your network configuration.

10. Are there any other ways to find my local IP address?

Yes, besides using the Command Prompt, you can also find your local IP address in the network settings of your operating system, or by using online IP address lookup tools or network scanning software. These methods might vary depending on the device and operating system you are using.