Imagine your internet suddenly stops working. Before calling support, you want to know two simple things: "What is my computer's address on the Wi-Fi?" and "Can my computer reach the outside world?"

In Windows PowerShell or Command Prompt (CMD), two classic built-in tools answer those questions in seconds: ipconfig and ping.

1. Finding Your Address with ipconfig

Every device on your home Wi-Fi gets an IP Address—just like a house number so the router knows where to deliver data. Run ipconfig to see yours:

# Show your computer's network adapters and IP address
ipconfig

Look for the line called IPv4 Address (usually something like 192.168.1.15) and Default Gateway (that is your Wi-Fi router's address).

2. Knocking on a Website's Door with ping

ping works like knocking on a friend's front door and timing how fast they say "Hello!" It sends tiny test packets to a website and measures how many milliseconds it takes to get a reply.

# Send 4 quick test knocks to google.com
ping google.com

If you see replies like Reply from ... time=18ms, your internet connection is healthy! If you see Request timed out, either the site is unreachable or your connection is blocked.

PowerShell Bonus: Test-Connection

If you are using PowerShell, you can also use its friendly modern version of ping:

# PowerShell's cleaner ping command (sends 2 tests)
Test-Connection google.com -Count 2

3 Things to Remember

  • ipconfig shows your computer's local IP address and your router's Default Gateway.
  • ping checks whether you can reach a website and measures response speed in milliseconds (ms).
  • Both commands work in Command Prompt and PowerShell—and PowerShell also offers Test-Connection.