What a subnet mask is and why you need to check it

A subnet mask is a string of numbers that tells your device which computers on your network it can talk to directly, and which ones it needs to send traffic through a router to reach. It looks like an IP address — something like 255.255.255.0 — but it works differently. When devices on your network have mismatched subnet masks, they can't communicate even though they're physically connected, which is one of the quieter reasons a home network stops working.

You need to check your subnet mask when you're troubleshooting a connection problem, when you're adding a new device and want to make sure it's on the same network as your other machines, or when you're setting up a second network segment for guests or IoT devices. Most home networks use 255.255.255.0, but some use 255.255.0.0 or other values depending on how they're configured.

The process takes less than a minute on any operating system, and you don't need administrator rights to look at the information — only to change it.

Key Takeaways

  • On Windows, open Settings, go to Network & Internet, then Status, then View your network properties to see your subnet mask listed as "IPv4 Subnet Mask".
  • On Mac, open System Settings, click Network, select your connection, then click Details to find the subnet mask under "IPv4 Address".
  • On Linux, open a terminal and type ip addr show or ifconfig to see the subnet mask listed as the netmask or broadcast address.
  • All devices on the same network segment should have subnet masks that match, or they won't be able to communicate directly with each other.
  • If you see 255.255.255.0 on most devices but 255.255.0.0 on one machine, that machine is likely on a different network and won't reach the others without routing.

Checking your subnet mask on Windows 10 and 11

Open the Settings app by pressing the Windows key and typing "Settings", then press Enter. Click Network & Internet on the left side of the window.

Click Status in the left menu. Scroll down and click View your network properties. A new window opens showing all your network details. Look for the line that says IPv4 Subnet Mask — the number next to it is what you're looking for. Write it down or take a screenshot if you need to compare it with other devices.

If you're connected to Wi-Fi, this shows the subnet mask for your wireless connection. If you're plugged in with an Ethernet cable, the process is the same but the information shown is for the wired connection instead. You can check both by repeating these steps after switching which connection is active.

Checking 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 your network connections — click the one you want to check (usually Wi-Fi or Ethernet).

Click the Details button on the right side of the window. A new panel opens. Look for the IPv4 Address section. The subnet mask is listed there as a separate line, usually showing something like 255.255.255.0. Close this panel when you're done.

If you have both Wi-Fi and Ethernet connected, you'll need to check each one separately by clicking on it in the Network list and then clicking Details again.

Checking your subnet mask on Linux

Open a terminal window. Type the command ip addr show and press Enter. You'll see output for each network connection on your machine. Look for the connection you want to check — usually labeled eth0 for Ethernet or wlan0 for Wi-Fi. Next to the IP address, you'll see a forward slash followed by a number, like 192.168.1.100/24. That number after the slash is the subnet mask in CIDR notation.

To convert CIDR notation to the standard format: /24 means 255.255.255.0, /16 means 255.255.0.0, and /8 means 255.0.0.0. If you prefer to see the subnet mask in the standard dotted format instead, type ifconfig and press Enter. Look for your connection name and find the line labeled Netmask — that's your subnet mask in the format you're used to seeing.

What to do if your subnet masks don't match

If you've checked the subnet mask on multiple devices and they're different, that's usually the reason those devices can't see each other on the network. The most common mismatch is one device showing 255.255.255.0 while another shows 255.255.0.0.

First, check whether the device with the different subnet mask is supposed to be on a separate network — for example, if you've set up a guest network, devices on it will have a different subnet mask by design. If it's not supposed to be separate, the device probably got its network settings from a DHCP server that's misconfigured, or it was manually set to the wrong values.

The fastest fix is usually to restart the device and let it get new network settings from your router. If that doesn't work, you can manually set the subnet mask to match the others, but that requires going into your network settings and changing the IP configuration — a step that varies by device and is worth doing only if you're comfortable with network settings or have documentation for your specific setup.

Why your router's subnet mask matters

Your router sets the subnet mask for your entire network when it hands out IP addresses through DHCP. If your router is set to use 255.255.255.0, every device that gets an address from it will also use 255.255.255.0. If you change the router's subnet mask, all devices need to get new addresses from it — usually by restarting them or manually renewing their DHCP lease.

Most home routers come set to 255.255.255.0, which supports up to 254 devices on the same network segment. You only need to change this if you're building a more complex network with multiple segments, which is rare in a home setup. If you're not sure whether your router's subnet mask is correct, check it the same way you'd check any other device — it will appear in your router's admin panel under network settings or DHCP configuration.

Frequently Asked Questions

What does the subnet mask actually do?

The subnet mask tells your device which part of an IP address represents the network and which part represents the individual device. With a subnet mask of 255.255.255.0, the first three numbers of the IP address (like 192.168.1) identify the network, and the last number identifies your specific device. Devices with the same network portion can talk directly; others need a router.

Is 255.255.255.0 always the right subnet mask for home networks?

Yes, for almost all home networks. It's the default on most routers and supports plenty of devices. You only need a different subnet mask if you're intentionally creating multiple network segments or have more than 250 devices on one segment — both rare in home setups.

Can a wrong subnet mask cause internet to stop working?

A wrong subnet mask usually doesn't break internet access — your router can still reach the outside world. But it will prevent devices on your home network from talking to each other, which feels like a network problem even though the internet itself works fine.

Do I need to restart my device after checking the subnet mask?

No. Checking the subnet mask doesn't change anything — you're just looking at information. Restarting is only necessary if you change the subnet mask and want the device to get new network settings from your router.

Why do some devices show the subnet mask differently?

Linux systems often show subnet masks in CIDR notation (like /24) instead of the dotted format (255.255.255.0), but they mean the same thing. Windows and Mac typically show the dotted format by default. The information is identical; it's just displayed differently depending on the operating system.