Networking

How do I check an IP address?

Updated 2026-08-14

✓

Quick answer

You can check an IP address using the command line or through online tools. For local IP addresses, use 'ipconfig' on Windows or 'ifconfig' on macOS/Linux.

This guide provides methods to check both local and public IP addresses across different platforms.

Steps

  1. 1

    Windows

    Open Command Prompt and type 'ipconfig'. Look for 'IPv4 Address' under your active network connection.

  2. 2

    macOS

    Open Terminal and type 'ifconfig'. Look for 'inet' under your active network interface (usually 'en0' or 'en1').

  3. 3

    Linux

    Open Terminal and type 'ifconfig' or 'ip addr'. Look for 'inet' under your active network interface.

  4. 4

    Using Online Tools

    Visit websites like 'whatismyip.com' or 'ipinfo.io' to see your public IP address.

Checking Local IP Address

To find your local IP address, you can use the command line interface on your device.

Checking Public IP Address

To find your public IP address, you can use various online services or command line tools.

Watch out for

  • The command line tools may vary slightly depending on the operating system version.

FAQ

What is the difference between local and public IP addresses?

Local IP addresses are used within a private network, while public IP addresses are assigned by your Internet Service Provider and are used on the internet.

Can I change my public IP address?

Yes, you can change your public IP address by restarting your router or contacting your ISP, but it may not always be guaranteed.

What should I do if my IP address is not showing up?

Ensure that your device is connected to the network and try refreshing the command line or online tool. Check your network settings if issues persist.