Search Authority

Find IP Address Using Command Prompt: Simple CMD Steps

Finding a device IP address from your own machine is a practical skill that helps with network troubleshooting, remote access setup, and security checks. The Windows Command Pro...

Mara Ellison Jul 25, 2026
Find IP Address Using Command Prompt: Simple CMD Steps

Finding a device IP address from your own machine is a practical skill that helps with network troubleshooting, remote access setup, and security checks. The Windows Command Prompt provides a simple, built-in way to reveal this information quickly using standard commands.

Whether you are on a home network or a managed office system, the steps below guide you through Cmd utilities that display both your local and public-facing address details.

Command Primary Use Shows Scope Typical Output Example
ipconfig View local network configuration Local machine IPs on active adapters IPv4 Address. . . . . . . . . . . : 192.168.1.15
ping Test connectivity and resolve hostname IP for a target host or domain Reply from 203.0.113.45: bytes=32
nslookup Query DNS records interactively Name-to-IP mapping for any domain Non-authoritative answer: 198.51.100.7
tracert Trace route to a destination Hop IP addresses along the path 1 10.0.0.1 15 ms 11 ms

Using ipconfig to Locate Your Local IP

The most direct way to find your machine's IP address in Command Prompt is the ipconfig command. It displays detailed adapter settings, including IPv4 and IPv6 addresses assigned to each network interface on your system.

Open Command Prompt by searching for cmd and selecting Run as administrator if you need full visibility. Typing ipconfig and pressing Enter shows information for each active connection, including the Local Area Connection or Wireless LAN adapter you are currently using.

Locate the entry labeled IPv4 Address; the value next to it, such as 192.168.1.100, is your local private IP. This address is used inside your network and is not directly reachable from the internet without port forwarding or similar configuration.

Resolving a Remote Host to Its IP with Ping

If you want to discover the IP address of another device or a website, the ping command helps by sending packets and displaying the resolved address in the response.

Open Command Prompt and type ping followed by a hostname or domain, such as ping example.com, then press Enter. The output includes a line like Reply from 93.184.216.34, which is the IP address that your system resolved for that name.

This method is useful when you need to verify connectivity or record the numeric address of a server. It works for both local network devices and public internet hosts, provided name resolution is available.

Performing DNS Lookups with nslookup

The nslookup command offers a more detailed way to query Domain Name System servers and retrieve IP addresses for any domain name directly from the command line.

After opening Command Prompt, type nslookup and press Enter to enter interactive mode, or run nslookup example.com in a single line to get immediate results. The non-authoritative answer section typically shows the IPv4 address, and in more advanced queries you may also see IPv6 records.

Use nslookup when you need to confirm that a domain points to the expected server, troubleshoot DNS issues, or gather address information for diagnostics and documentation.

Tracing Network Paths with tracert

The tracert command reveals the series of routers and gateways your traffic passes through to reach a destination, showing each hop's IP address and response times.

In Command Prompt, type tracert followed by a target hostname or IP, such as tracert google.com, and observe the numbered list of hops. Each line displays an IP address, and delays help identify where latency or packet loss might occur on the route.

This process is valuable for network diagnostics, allowing you to see which intermediate systems your packets encounter and to pinpoint where connectivity problems may arise along the path.

Key Takeaways for Finding IP Addresses

  • Use ipconfig to quickly locate your local private IPv4 address on any active adapter.
  • Use ping to resolve the IP address of a hostname or another device on the network.
  • Use nslookup for detailed DNS queries and to verify name resolution results.
  • Use tracert to map the route and observe hop IP addresses for diagnostics.
  • Understand the difference between private LAN addresses and your public internet IP.

FAQ

Reader questions

How do I find the IP address of another computer on my local network?

Run ping with the hostname of that computer in Command Prompt, or use arp -a after communicating with it to see its resolved MAC and IP mapping on your subnet.

What should I do if ping resolves to an unexpected IP address?

Check your DNS settings and hosts file, then use nslookup to compare results, because a misconfigured DNS server or entry may return an incorrect address.

Can tracert show the IP address of my own machine?

No, tracert shows hop addresses toward a destination; to see your own IP, use ipconfig to view the IPv4 address on the active adapter instead.

Why does my public IP differ from what ipconfig shows locally?

ipconfig displays your private LAN address, while your public IP is assigned by your ISP and seen by external services, often through a router or NAT setup.

Related Reading

More pages in this topic cluster.

How to Tell the Difference Between Silver and Aluminum (Silver vs Aluminum)

Spotting the difference between silver and aluminum helps you verify purchases, appraise items, and avoid overpaying for misidentified metals. While they look similar at first g...

Read next
Excel Keyboard Shortcut for Strikethrough: Easy Step-by-Step Guide

Mastering the Excel keyboard shortcut for strikethrough helps you track completed tasks, revisions, and action items without leaving the keyboard. This small efficiency habit sp...

Read next
Durham NC News Today: Latest Headlines & Updates

Durham NC news keeps the Research Triangle region informed about breakthrough healthcare, education, and downtown development. Local reporting connects residents and visitors to...

Read next