In Command Prompt, there are numerous features that users may not be aware of. In reality, this tool is designed for those who enjoy exploring and researching computers. Network ping commands or discovering someone's IP address in Command Prompt is a practical example. Typically, we use network ping commands to check network speed and stability.
But of course, to discover someone's IP address, you only need to use Command Prompt. For those using Windows 10, PowerShell won't be effective for this method. Therefore, individuals using PowerShell on Windows 10 won't be able to use it. However, it's still possible to open Command Prompt on Windows 10.
Guide to Discovering Someone's IP Address in Command Prompt
Before diving into the article, let's explain a bit about checking IP addresses, discovering someone's IP address. Specifically, you'll only know if that IP is active or not through the Command Prompt tool; you cannot determine which machine the IP belongs to. Furthermore, Mytour advises you to search for IP addresses within a certain range, as searching through all 255 IPs would be lengthy and wouldn't address the main issue.
Step 1: First, open the Start Menu, then type Command Prompt into it but don't click on it right away. Instead, right-click to display an additional menu and select
This step is necessary because the IP address search command only works when Command Prompt is in Administrator mode.
Step 2: First, find your own IP address using the ipconfig command. In this article, we will only search for other IP addresses close to ours.
Right after that, you will see your IP address, as shown in the article, under the IPv4 Address section, mine is 192.168.1.45.
Step 3: In this article, Mytour will search for IP addresses to see if they exist around the number 45, specifically addresses 40, 41, 42, 43, 44 using the syntax FOR /L %variable IN (start,step,end) Do command [command-parameters]
- When replacing it, we will get For /L %h IN (45,-1,40) DO ping 192.168.1.%h -l 1 -n 1
with %h here representing a variable.
(45,-1,40): 45 is the IP address in the article, -1 signifies that each address check will subtract one unit until it reaches 40.
Step 4: After running, you will see states as follows: if the IP address responds with Reply from 192.168.1.xx showing parameters bytes, time, and TTL , it means the address is active, being used by someone.
In case you receive a message like Reply from 192.168.1.xx Destination host unreachable , it means the IP address is currently vacant, and you won't be able to connect to that address.
Through these 2 cases, you can see that finding an IP address isn't difficult at all. Although using Command Prompt for this purpose isn't widely practiced, it's still a computer trick worth knowing.
If you find the above article not convincing enough to use Command Prompt, why not try exploring 5 lesser-known Command Prompt tricks? This article will show you how useful 5 lesser-known Command Prompt tricks can be.