Networking

How do I find my subnet mask?

Updated 2026-08-14

✓

Quick answer

You can find your subnet mask in the network settings of your device or by using command line tools like 'ipconfig' on Windows or 'ifconfig' on macOS/Linux.

Finding your subnet mask is essential for understanding your network configuration and connectivity.

Steps

  1. 1

    Windows

    Open Command Prompt and type 'ipconfig'. Look for 'Subnet Mask' under your active network connection.

  2. 2

    macOS

    Open System Preferences, go to 'Network', select your active connection, and find the subnet mask in the details.

  3. 3

    Linux

    Open a terminal and type 'ifconfig' or 'ip addr'. Look for 'netmask' in the output for your active network interface.

Understanding Subnet Mask

A subnet mask is used to divide an IP address into network and host portions. It typically appears in the format of four octets (e.g., 255.255.255.0).

Platform-Specific Steps

The method to find your subnet mask can vary depending on your operating system.

Watch out for

  • The method to find the subnet mask may vary based on the version of the operating system.

FAQ

What does a subnet mask do?

A subnet mask defines the range of IP addresses that can be used within a network and helps route traffic appropriately.

Can I change my subnet mask?

Yes, you can change your subnet mask in your network settings, but ensure it aligns with your network configuration to avoid connectivity issues.

Is the subnet mask the same as the IP address?

No, the subnet mask is different from the IP address; it is used to determine which part of the IP address is the network and which part is the host.