An IP address is a unique numerical label assigned to every device that connects to the internet. Think of it like a mailing address for your computer—it tells other computers and websites where to send information back to you. IP addresses consist of four numbers separated by periods, such as 192.168.1.5 or 172.31.45.200. There are two main types: IPv4 addresses, which use the format shown above with numbers ranging from 0 to 255 in each section, and IPv6 addresses, which use a longer format with letters and numbers to accommodate the growing number of internet-connected devices worldwide.
Open a Chase Bank Account Online Guide →
Your device may have multiple IP addresses depending on your setup. Your local IP address (also called a private IP address) identifies your device within your home or office network. Your public IP address is what websites see when you visit them—it's assigned by your internet service provider and can change over time. Understanding the difference between these two types matters because they serve different purposes and you'll find them in different ways.
Common reasons people need to find their IP address include troubleshooting network problems, setting up remote connections to their computer, configuring network printers or security cameras, playing online games with friends, or testing internet speed and connectivity. Network administrators and IT professionals regularly need this information to manage multiple devices. Home users may need it when setting up a home server or accessing their computer from a different location.
Command Prompt, also called cmd or the command line, is a text-based interface built into Windows that allows you to communicate directly with your computer's operating system using typed commands. Many technical tasks can be performed through Command Prompt that would be difficult or impossible through the regular graphical interface. Finding your IP address through Command Prompt is faster than navigating through menus and gives you precise, unformatted information directly from your system.
Practical Takeaway: Before you start looking for your IP address, determine which type you need. If you're troubleshooting a home network or connecting devices within your home, you probably need your local IP address. If you're concerned about online privacy or need information for external services, you need your public IP address.
Command Prompt comes built into all versions of Windows, from Windows 7 through Windows 11, so you don't need to install anything. The method to open it varies slightly depending on which version of Windows you're running, but several approaches work on most systems. The most straightforward method is to click the Windows Start button (the four squares in the bottom left corner), then type "cmd" or "command prompt" and press Enter. Windows will show Command Prompt in the search results, and you can click it to open the program.
How to Pay Your TJ Maxx Bill Online →
Another reliable method works on nearly all Windows versions: simultaneously press the Windows key and the R key to open the Run dialog box. This small window lets you type commands to run programs. Type "cmd" and press Enter, and Command Prompt will open immediately. This method is often faster for experienced users who perform this task regularly.
On Windows 8 and newer versions, you can right-click the Start button and look for "Command Prompt" or "Windows PowerShell" in the menu that appears. Some newer Windows 11 systems show "Terminal" instead of Command Prompt, which is a newer interface that works the same way for the commands you'll be using.
When Command Prompt opens, you'll see a black window with white text showing your username and the current folder location, followed by a blinking cursor. The window might look intimidating if you're not used to text-based interfaces, but you only need to type a few simple commands. The interface responds to whatever you type—there are no graphics or buttons to click, just text input and output.
If you want more control over the Command Prompt window, you can right-click on the title bar at the top to access properties. This lets you adjust the text size, colors, and window dimensions to make reading easier. Some people prefer to run Command Prompt as an administrator, which you can do by right-clicking on the Command Prompt icon in your search results and selecting "Run as administrator," though this isn't necessary for finding your IP address.
Practical Takeaway: The Windows key + R method to open Command Prompt is the fastest once you remember the keyboard shortcut. Save time by using this approach rather than navigating through the Start menu and search results each time.
Once Command Prompt is open, finding your local IP address requires typing a single command: "ipconfig" (which stands for IP configuration). Type this word and press Enter. Your computer will display detailed information about all network adapters connected to your system. This output shows multiple sections, usually including Ethernet adapters and Wireless LAN adapters, depending on how your computer connects to the network.
In the output, look for the section labeled with your connection type. If you're connected through an Ethernet cable, find the "Ethernet adapter" section. If you're using WiFi, look for "Wireless LAN adapter" or "WiFi adapter." Within the correct section, you'll see several lines of information. The line labeled "IPv4 Address" shows your local IP address—this is the number you're looking for. It will appear as four numbers separated by periods, typically starting with 192.168, 10.0, or 172.16 on most home networks.
The ipconfig output also shows other useful information. The "Default Gateway" line shows the IP address of your router. The "Subnet Mask" indicates which devices are on the same local network as you. The "DNS Servers" are the computers that translate website names into IP addresses. While finding your IP address is the primary goal, this additional information can help with network troubleshooting.
If you have multiple network adapters (for example, both Ethernet and WiFi connections), the ipconfig command displays information for all of them. Make sure you're looking at the adapter you actually use to connect to the internet. If you're unsure which one is active, check which adapter shows an IPv4 Address with actual numbers—adapters that aren't currently connected might show all zeros or be missing the IPv4 Address field entirely.
For a cleaner view that shows only the essential information, you can type "ipconfig /all" to see every possible detail about your network configuration, or simply use "ipconfig" for the basic information. Some users prefer piping the output to find specific information, though the basic "ipconfig" command works well for most situations.
Practical Takeaway: Write down your local IP address, default gateway, and subnet mask when you find them. This information helps when troubleshooting network problems or setting up devices like printers that need to connect to your home network.
Your public IP address is what the outside internet sees when you access websites or services. Finding this address through Command Prompt is slightly different from finding your local IP because this information comes from external services rather than your computer's local network configuration. One common method involves using a Command Prompt command that queries an external website to determine your public IP address.
How to Turn Off Comments on TikTok Videos →
You can type a command like "nslookup myip.opendns.com resolver1.opendns.com" to contact an external service and receive your public IP address in return. This command uses the Domain Name System (DNS) to query OpenDNS servers and retrieve your public-facing IP address. The result appears as "Address:" followed by your public IP address. This method works reliably and doesn't require downloading any additional programs.
Another approach uses "curl" command if your Windows version supports it (Windows 10 build 17063 and later). You can type a command like "curl ifconfig.me" or "curl icanhazip.com" to query services that specialize in showing you your public IP address. These services exist specifically to report your public IP, making them reliable sources for this information.
It's important to understand that your public IP address may differ from your local IP address. Your router translates between these two types of addresses through a process called Network Address Translation (NAT). Your local IP is only visible within your home network, while your public IP is what identifies your entire home network to the outside internet. Your internet service provider assigns your public IP address, and it may change periodically—some providers change it daily, while others keep it stable for months.
If these Command
This guide is for general information only and is not medical, financial, legal, or other professional advice. For decisions specific to your situation, consult a qualified professional. See our Editorial Policy.