Why you need to know your Mac and IP addresses
Your Mac address (media access control address) and IP address are two different identifiers that your device uses on a network. Your IP address is what lets other devices find and talk to you across the internet or your home network — it looks like 192.168.1.5 or similar. Your Mac address is what identifies your specific device on your local network — it looks like 00:1A:2B:3C:4D:5E. You need both to set up network security features like MAC filtering (which lets your router accept only devices you trust) and to troubleshoot connection problems.
Finding these addresses takes less than five minutes on any device, and you'll need them when you set up a new router, add a device to your network's allowlist, or work with your internet provider to fix a connection issue.
Key Takeaways
- Your IP address identifies your device on the internet; your Mac address identifies it on your local network only.
- On Windows, open Command Prompt and type ipconfig /all to see both addresses in one place.
- On Mac, go to System Settings > Network, select your connection, and click Details to find your IP address; open Terminal and type ifconfig to see your Mac address.
- Write down both addresses or take a screenshot — you'll need them when you set up MAC filtering or contact your internet provider.
- Your IP address may change if you restart your router, but your Mac address stays the same as long as you own the device.
Finding your IP address on Windows
Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. Type ipconfig and press Enter. Look for the line that says "IPv4 Address" — that's your current IP address on your home network. If you're connected to the internet through a modem and router, this is the address your router assigned to your device.
If you need more detail (like your Mac address at the same time), type ipconfig /all instead. This shows your IP address, your Mac address (listed as "Physical Address"), your gateway (usually your router), and your DNS servers. Write down or screenshot the information you need before closing the window.
Finding your IP address on Mac
Click the Apple menu in the top left, then System Settings. Click Network in the left sidebar. Select the connection you use (usually Wi-Fi or Ethernet), then click Details. Your IP address appears in the TCP/IP tab. If you're using Wi-Fi, you can also click Wi-Fi in the left sidebar, then Advanced, then TCP/IP to see the same information.
Your IP address is listed as "IPv4 Address" or sometimes just "IP Address." Write it down or take a screenshot. If you need to find your Mac address on a Mac, you'll use Terminal instead — see the next section.
Finding your Mac address on Windows
Use the same Command Prompt window from earlier. In the output of ipconfig /all, look for the line that says "Physical Address." That's your Mac address. It will be a string of six pairs of numbers and letters separated by hyphens, like 00:1A:2B:3C:4D:5E or 00-1A-2B-3C-4D-5E (Windows sometimes shows hyphens instead of colons).
If you only ran ipconfig without the /all flag, open Command Prompt again and type ipconfig /all to see the Physical Address line. You may have multiple network adapters listed (one for Wi-Fi, one for Ethernet, for example) — make sure you're writing down the Mac address for the adapter you actually use.
Finding your Mac address on Mac
Open Terminal by pressing Command + Space, typing terminal, and pressing Enter. Type ifconfig and press Enter. Look for the section that matches your connection type — usually en0 for Ethernet or en1 for Wi-Fi. In that section, find the line that starts with "ether" — the string of letters and numbers after "ether" is your Mac address.
If you have multiple network adapters, you'll see multiple sections. Make sure you're looking at the one for the connection you actually use. The Mac address will look like 00:1a:2b:3c:4d:5e. Write it down or copy it into a text file for safekeeping.
What to do with these addresses once you have them
Store both addresses somewhere safe — a notes app, a password manager, or a printed document in a drawer. You'll need them when you set up MAC filtering on your router (which tells your router to accept only devices with specific Mac addresses), when you add a device to your network's allowlist, or when you contact your internet provider about a connection problem.
If your internet provider asks for your IP address, give them the one you found in System Settings or Command Prompt — that's your local IP address. If they ask for your "public IP address" (the one the outside internet sees), that's different; you can find it by searching "what is my IP" in any web browser. Your Mac address never changes unless you replace your network card, so you can write it down once and keep it.
Why your IP address might change
Your router assigns your device a new IP address each time you restart the router or your device reconnects to the network. This is normal and expected. If you need your device to keep the same IP address (for example, to set up port forwarding for a security camera), you can assign a static IP address in your router's settings — your router's manual or support page will explain how.
Your Mac address, by contrast, never changes on its own. It's burned into your network card when the device is made. This is why MAC filtering works — your router can recognize your device by its Mac address even if the IP address changes.
Frequently Asked Questions
What's the difference between my local IP address and my public IP address?
Your local IP address (the one you found in System Settings or Command Prompt) is what your router uses to talk to your device inside your home. Your public IP address is what the outside internet sees when you connect — it's assigned by your internet provider. You need your local IP address for home network security; your public IP address is only relevant if you're troubleshooting internet connectivity with your provider.
Can someone use my Mac address to hack me?
Your Mac address only works on your local network, so it's not a security risk if someone sees it. Your IP address is more sensitive — it can be used to locate your general area — but it's visible to any website you visit anyway. The real value of knowing your Mac address is using it to set up MAC filtering, which prevents unknown devices from joining your network in the first place.
Do I need to find these addresses for every device on my network?
Yes, if you're setting up MAC filtering or creating an allowlist. Each device (phone, laptop, tablet, printer, smart speaker) has its own Mac address and IP address. You'll need to find and record the Mac address for each device you want to allow on your network. This takes a few minutes per device but only needs to be done once.
What if I see multiple IP addresses or Mac addresses on my device?
Devices with multiple network adapters (like a laptop with both Wi-Fi and Ethernet) will have multiple addresses. Use the one for the connection type you actually use. If you're on Wi-Fi, use the Wi-Fi adapter's address; if you're plugged in with Ethernet, use the Ethernet adapter's address.
Will my IP address change if I move to a different location?
Yes. Your local IP address is assigned by your router, so it will be the same whether you're in your home office or your living room. But if you move to a different building with a different router, your router will assign you a new local IP address. Your public IP address (assigned by your internet provider) will also change if you move to a different location with a different internet provider.