Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

How to find google ip address in cmd?

6 Answer(s) Available
Answer # 1 #

There are three commands you can use to find out what the IP address of a website is, and they’re all easy to use. Let’s see what you’re required to do:

The “ping” command makes it easy to, not only find out a website’s IP address, but also other relevant information about its server.

Once the command is run through completely, it will display some relevant statistics about the website, which will be addressed as its IP address, like round-trip times and packets sent and received.

Read: How to set a Static IP Address in Windows

Executing the nslookup command on Command Prompt is as easy as it was with the ping command. Although it doesn’t provide you with as much intel as the former does, it’s executed quicker. Therefore, when your sole purpose is to get the IP address, then the nslookup command should be preferred.

There is a possibility, however, that this command might not work for some websites. This is because it works only when the IP address owner has inserted a PTR record in the DNS.

Related: What’s my IP Address?

Thirdly, you can make use of the Tracert command. The unique thing about this command is that it doesn’t ping the web address, but instead shows you the fastest connection speed between servers/connections.

You can find the website’s IP address next to the “tracing route to:”. If you want to further trace the IP address, to see where the signal originates from, you can use websites like

If you don’t want to deal with executable commands, then you can make use of online tools like Global DNS checker to do the needful.

The purpose of the nslookup command is to query internet domain name servers in two modes; interactive and noninteractive mode. The interactive mode allows you to survey name servers for information about various hosts and domains, whereas, in the noninteractive mode, the information is limited to a specified host or domain.

In order to find the IP address of a website in the Google Chrome browser, you need to use the Developer Tools. Open a website, right-click on it and select the Inspect option. Then, switch to the Network tab and reload the same webpage. Next, click on the website’s header and find the General menu. It is also called Remote Address.

Desh Nandwani
Answer # 2 #

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" to find a list of Google's IP addresses.

Sutton Buzby
Answer # 3 #

Here’s is the step by step procedure:

Suzy Hengsathorn
Answer # 4 #

Like most things in Windows there are dozens of ways to get something done, so today we’re showing you multiple different techniques to find your public or private IP address from the command prompt.

Why would you want to get your IP address from the command line when you can easily look it up in the GUI in Windows 10 or Windows 11? If you’re an old-school kind of geek, using the command line to do things comes naturally, so you might find it easier to type in a quick command instead of clicking a whole bunch of settings. The real reason, though, is that you’re probably going to automate it in a script, and you just need to figure out the right command for the job.

Before we show you how to find your IP address we need to talk about the difference between public and private IP addresses.

Each network that you’re connected to will have an IP address associated with it—if your computer is connected via Wi-Fi as well as Ethernet, both of the adapters will have their own IP addresses, and your local TCP/IP routing table is responsible for figuring out which one ends up getting used for which requests. Most of the time, though, you’re just connected to your Wi-Fi router, so your local computer connecting to your local network has a single IP address.

Your internet router, however, is always connected to two separate networks: your local (private) network in your house, and the external (public) network of your ISP. The router translates the request from your computer using NAT (Network Address Translation) to allow everything in your network to share a single public IP address.

When your Windows PC, iPhone, or Raspberry Pi connect to the internet from your house, the server that they connect to will see them as the same IP address: the external (public) IP on your router.

To find your local or private IP address from the command prompt in any version of Windows, simply open up the Start Menu, search for the Command Prompt, open it up, and type the following command:

Windows will output a lot of details, but the line you’re looking for is the one that says “IPv4 Address” which will display your local / private IP address for the adapter that is connected to your Wi-Fi or Ethernet network.

Some people will have more than one adapter in the list, and if you’ve got Virtual machine software installed or WSL you might see a lot of extra stuff, so you’ll need to check for the adapter that’s connected to the network you’re trying to find the address for.

Keep in mind this is your private IP address, not the public address that websites will see your traffic coming from. For your public IP address, keep reading.

To find your public / external IP address from the command prompt, you have a lot of different options, but perhaps the easiest one is to simply type the following command (assuming you’ve already opened Command Prompt from the Start Menu)

This command will instantly output your current public IP address right there on the command line. It works by using the curl command to download the contents of, which is a very simple website that somebody set up to output nothing but your public IP address. If you plug that domain name into your browser, you’ll see the same thing.

It’s worth noting that Windows 10 and 11 have the curl command built right in, but if you’re using an earlier version of Windows you probably will need to download a copy of curl for Windows. Curl should work from within the regular Windows CMD prompt, but you can also use it from within the Bash shell inside of Windows 10 or 11 as well.

There are also a number of alternative methods for pulling up your public IP address from the command prompt, and we’ll include those for completeness—and just in case the first one stops working! Here are a few:

That last one weirdly includes an extra line break, which might not work very well if you’re using this in a script.

Perhaps my favorite method uses OpenDNS and the trusty nslookup command that’s been on every version of Windows since forever:

Now that you’ve had tons of fun reading about how to do all this from the command prompt I should probably point out that you can also just type “what is my ip” into Google and it’ll tell you. But it’s just not as much fun that way.

Want to get more complicated? Did you know that you can actually change your IP address from the command prompt? You can also edit the Windows Registry, lock your PC, change a password, start Excel or Word, map network drives, shut down your PC, uninstall programs, compare files, find files, locate your Windows product key, and even use all sorts of keyboard shortcuts from the old-school Windows command prompt.

If you’re ready to really have fun, here’s how to find your public IP address from a more powerful PowerShell prompt (or script, for that matter). Just type this into your PowerShell terminal:

It’ll instantly return your IP address just like all the other examples above. You can also split it out into multiple lines if you’re going to be using it in a script:

This will create the $myip variable and put the contents of the request into it, and then you can use $myip.Content to spit out the value or use it elsewhere in a script if you need to. You can replace the site with any of the other examples that we showed you earlier, just in case that site isn’t working at some point in the future.

If you’re using the Bash shell from within Windows, you’ll probably be happy to know that getting your public IP address is just as simple as from the command prompt. Just type the following command:

It should work exactly the same way as the command did in the regular CMD prompt, but you can do so much more with the Bash shell than the command prompt.

Shambhu lzsqx
Answer # 5 #

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:

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

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

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.

Toru Bayerl
Principal Dancer
Answer # 6 #
  • Open a web browser (such as Chrome or Firefox).
  • Visit one of the following websites: Either of these web pages detects and displays the public IP address of your network.
czhkbj Trivedi