How to find IP address on computer command prompt

Your comment on this question:

Your comment on this answer:

  • In Command Prompt, enter ipconfig. You’ll see your IP address next to the IPv4 Address.
  • In Command Prompt, enter ipconfig /all. You’ll see more detailed information in addition to your IP address.

This article shows you how to use Command Prompt on your Windows computer to obtain your IP address.

Of course, you cannot run a command in Command Prompt until you open it. There are actually several ways to do this, but these two are super easy.

If you have the Search box or icon in your Task Bar, you can use it. Otherwise, click the Start button (Windows icon) and type either "cmd" or "Command Prompt," then select Command Prompt from the list.

You can also click the Start button, scroll to and expand Windows System, and select Command Prompt.

Once you have Command Prompt open, the rest is a piece of cake. Type the following command and then press Enter:

ipconfig

You’ll then see a snippet of information. Your IP address is next to IPv4 Address:

Wireless LAN adapter Wi-Fi: Connection-specific DNS Suffix .: lan.ourhost.net IPv6 Address....................: fd21:9dl7:c305:5:cld3:ca26:flc Temporary IPv6 Address..........: fd21:9dl7:c305:5:4d83:8a05:5ef4 Link-local IPv6 Address.........: fe80::cld3:ca36:flc:bd0c%24 IPv4 Address....................: 192.176.2.143 Subnet Mask.....................: 255.355.455.0 Default Gateway.................: 192.176.2.1

If you’d like more detailed information along with your IP address, type the following command and hit Enter:

ipconfig /all

This second command gives you things like your hostname, ethernet adapter details, DHCP information, and more. But to keep it simple, and if you only need your IP address, the first command above is the way to go.

If you have a computer running macOS or Linux, check out our how-to for finding your IP address on those platforms.

FAQ

  • How can I find the domain name from an IP address in the Command Prompt?

    Use the nslookup tool to find domain name information. With the IP address handy, open the Command Prompt and enter nslookup IP address. The output will list the domain name in the Name line.

  • How do I find a machine's name from an IP address in the Command Prompt?

    To find the name of a computer on your network, type nbtstat -A IP address and press Enter. Look for the machine's name under Name near the top of the result.

Thanks for letting us know!

Subscribe

Tell us why!

Do you need to find your PC's IP address, but you just can’t? Don’t worry; with the Command prompt on Windows, you can quickly figure out your PC's IP address. Here’s how.

How to find the IP address of PC using the Command prompt (cmd)

Not everyone likes to meddle with the same old boring GUI. Some of us love to get our hands dirty and have more control of our PC straight from the Command prompt itself. Luckily, you can also find your PC’s IP address through the Command prompt. Here’s how.

To get started, head to the Start menu search bar, type in ‘cmd’, and select the best match. Do this, and the Command prompt will be launched.

On the Command prompt, type in the following command and hit Enter:

ipconfig

How to find IP address on computer command prompt

The Command prompt will throw a battery of information at you. From all this information, locate the IPv4 Address value. The numbered address for the IPv4 Address is what denotes your PC’s IP address. In this case, it's 10.211.55.8, as you can see from the image above.

Finding the IP address of your Windows PC

And that’s one of the ways you can figure out the IP address of your PC, folks. But, of course, there are a host of ways to go out about finding the IP addresses on Windows. You can, for instance, use the Windows Settings or rely on the Control Panel.

An IP address is a significant part of an internet-connected PC. And that’s exactly why Microsoft lets you do a host of things with it, such as setting up an IP address, editing your host files, and so on. We hope the above method helped you find your IP address on Windows with ease.

Share This Post:

Internet Protocol, or IP, addresses allow networked computers, servers and other hardware to find each other and communicate. In your business network, your network router's IP address is called the "default gateway," because it acts as a central hub through which all other hardware connects and assigns IP addresses for connected hardware. Using Command Prompt commands, you can locate the router's default gateway and the IP address assigned to your computer. If you are not using a router, the resulting IP address will be the IP assigned by your Internet service provider. The Command Prompt tool also offers other means of finding IP addresses, including looking up the server IP address that hosts your business website or listing the IP addresses of every server between your current location and a website.

  1. Click "Start," type "cmd" and press "Enter" to open the Command Prompt window. Alternatively, click "Start | All Programs | Accessories | Command Prompt."

  2. Type "ipconfig" and press "Enter." Look for "Default Gateway" under your network adapter for your router's IP address. Look for "IPv4 Address" under the same adapter section to find your computer's IP address. If you use a virtual private network for your business, its connection will have its own section and list your proxy IP address under "IPv4 Address."

  3. Use the command "Nslookup" followed by your business domain to look up its server's IP address. If the server has multiple IP addresses associated with the name, the command will list all of them. As an example, you might enter "nslookup google.com" to find a list of Google's IP addresses.

  4. Use the "Tracert" command followed by your business domain to list all server IP addresses between your computer and your website. As an example, you might enter "tracert google.com" to find the IP address of each server between your computer and Google's website.