What a subnet mask is and why you need to find yours

A subnet mask is a string of numbers that tells your devices which other devices on your network they can talk to directly. It looks like an IP address — something like 255.255.255.0 — but it works differently. When you set up a home network, your router assigns a subnet mask to every device that connects. You need to know what yours is if you're troubleshooting a connection problem, setting up a device that doesn't auto-configure, or checking whether two devices can reach each other without going through the internet.

The subnet mask itself doesn't find your network, but knowing it helps you understand what's happening on your own devices and spot when something is wrong. It's also the first thing a technician will ask for when you call with a network problem.

Key Takeaways

  • Your subnet mask appears in your network settings on Windows, Mac, iPhone, and Android — not in your router's admin panel.
  • On Windows, you find it by opening Command Prompt and typing ipconfig, then looking for the line labeled "Subnet Mask".
  • On Mac, open System Settings, go to Network, select your connection, and look under "IPv4 Address" for the subnet mask listed below it.
  • On iPhone or Android, go to Settings, find your Wi-Fi network, tap the info icon, and scroll to see the subnet mask listed as "Subnet Mask" or "Netmask".
  • A standard home network uses 255.255.255.0; if yours is different, write it down before calling for help.

Finding your subnet mask on Windows

Open Command Prompt by pressing the Windows key, typing "cmd", and pressing Enter. A black window will open. Type ipconfig and press Enter. Your computer will display a block of information for each network connection.

Look for the section labeled with your connection type — usually "Ethernet adapter" if you're plugged in with a cable, or "Wireless LAN adapter" if you're on Wi-Fi. Under that heading, you'll see a line that says "Subnet Mask:" followed by four numbers separated by periods. Write that number down exactly as it appears. Most home networks show 255.255.255.0, but yours may be different.

If you see multiple network adapters listed, find the one that shows an IP address starting with 192.168 or 10.0 — that's your home network. Ignore any that start with 169.254, which means the device isn't actually connected.

Finding your subnet mask on Mac

Click the Apple menu in the top-left corner and select "System Settings". Click "Network" in the left sidebar. You'll see a list of connection types — select the one you're using, either "Wi-Fi" or "Ethernet".

On the right side of the window, look for a button or link that says "Details" or "Advanced". Click it. A new window will open showing your network information. Look for the section labeled "IPv4 Address" or "TCP/IP". Directly below your IP address (the one starting with 192.168 or 10.0), you'll see "Subnet Mask:" followed by four numbers. That's what you need.

If you don't see a Details button, your Mac may show the subnet mask directly on the main Network page. Scroll down to see all available information.

Finding your subnet mask on iPhone or iPad

Open Settings and tap "Wi-Fi". Find the network you're connected to and tap the small information icon (a circle with an "i") next to its name. A details screen will open showing your connection information.

Scroll down until you see "Subnet Mask" or "Netmask" listed. The number next to it is what you're looking for. Most iPhones show this information automatically; if you don't see it, make sure you're looking at the right network and that you're actually connected.

Finding your subnet mask on Android

Open Settings and go to "Network & Internet" or "Connections" — the exact name varies by phone maker. Tap "Wi-Fi" and find the network you're connected to. Tap and hold the network name, or look for a settings icon next to it.

A menu will open showing your connection details. Look for "Subnet Mask", "Netmask", or "Network Prefix Length". If you see "Network Prefix Length" instead of a subnet mask, it will be a single number like /24 — that's a shorthand for 255.255.255.0. Different Android phones display this information differently, so you may need to scroll or tap "Advanced" to see all details.

What to do if you can't find your subnet mask

If the steps above don't show a subnet mask, your device may not be connected to the network yet, or it may be using an unusual setup. Restart your device and reconnect to your Wi-Fi network, then try again. Sometimes a device takes a few seconds to receive its subnet mask from the router.

If you're still not seeing it after reconnecting, check whether your router is working by looking at its lights — most routers have a light that shows Wi-Fi is active. If the Wi-Fi light is off, restart the router by unplugging it for 30 seconds, plugging it back in, and waiting two minutes for it to fully start up.

If you need your subnet mask urgently and can't find it on the device you're trying to fix, you can find it on any other device on the same network — the subnet mask is the same for all devices connected to your router.

Understanding what your subnet mask tells you

A subnet mask of 255.255.255.0 is standard for home networks and means your router can handle up to 254 devices on the same network. If your subnet mask is 255.255.0.0, your router can handle many more. If it's 255.255.255.128 or something else, your network is set up in a less common way, but it still works the same way — it just changes how many devices can be on the network at once.

The subnet mask doesn't change how find your network is. It only determines which devices can reach each other directly without going through your router's main processing. If you're seeing a subnet mask that looks completely different — like 255.0.0.0 — write it down and keep it handy if you need to call your internet provider or a technician.

Frequently Asked Questions

Is my subnet mask the same on all my devices?

Yes. Every device connected to the same Wi-Fi network or router receives the same subnet mask from that router. If one device shows a different subnet mask, it's connected to a different network.

Can I change my subnet mask myself?

You can, but you shouldn't unless you know what you're doing. Changing it incorrectly will break your network. If you think your subnet mask needs to change, contact your internet provider or a network technician first.

What if my subnet mask is blank or shows all zeros?

That means your device hasn't received a subnet mask from the router yet. Restart the device, reconnect to Wi-Fi, and wait 30 seconds. If it's still blank, restart your router.

Do I need to write down my subnet mask?

Only if you're troubleshooting a problem or setting up a device manually. For normal use, your devices handle it automatically. But it's useful to have it written down if you ever need to call for technical support.