Open In App

How to Find the Subnet Mask of Your Computer?

Last Updated : 09 May, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Welcome to today’s tech tips guide to find the subnet mask of your computer. Like your IP address, a subnet mask helps identify devices on a local network. To connect to a network and use internet resources, a computer user must have the idea of a subnet mask. In this article, we will learn the simplest method to find a subnet number.

Before we begin the methods, let’s first understand what a subnet mask is. After that, we’ll learn to find the subnet mask on your computer in Windows, Mac, and Linux using different methods.

What is a Subnet Mask?

In your home network, all devices have different IP addresses but share some similarities. If you consider an example of a house network. All device’s addresses start with ‘192.168.1,’ but the last part of the address (octet) is different.

The part of the address is divided into network ID ( same across all devices) and host ID (unique to each device). This is where the role of the subnet comes in, Different networks can have different sizes for these networks and host portions.

Must Check: Subnet Mask Cheat Sheet – Beginner to Advanced!

Most home networks have a subnet mask of ‘255.255.255.0.’ Basically, the way it works is explained below with a sample example.

  • The octets that are ‘255’ represent the network portion.
  • The octets that are ‘0’ represent the host portion.

For example, if a network has an IP address of 10.10.1.X and a subnet mask of ‘255.255.0.0,’ the first two octets (10.10) are the network portion, and the last two octets (1.X) are the host portion.

How to Find Subnet Mask in a Windows PC?

Method 1: Find Subnet Mask Using Command Prompt

Step 1: Type Cmd in the search and open the Command Prompt.

Find-Subnet-Mask-in-a-Windows-PC_1

Step 2: Type IP configuration command mentioned below and press Enter

ipconfig /all
Find-Subnet-Mask-in-a-Windows-PC

The ipconfig command displays the network configuration and other network-related information as shown in the figure.

Step 3: Scroll down to Look for the ‘Subnet Mask’ entry under the network adapter information

Find-Subnet-Mask-in-a-Windows-PC_2

Method 2: Find Subnet Mask Using Control Panel

Step 1: Type control in the search and open the Control Panel.

Find-Subnet-Mask-in-a-Windows-PC_3

Step 2: Click on Network and Internet.

Find-Subnet-Mask-in-a-Windows-PC_4

Step 3: Click on Network and Sharing Center.

Find-Subnet-Mask-in-a-Windows-PC_5

Step 4: Click on the network connection you want to check (as shown below).

Find-Subnet-Mask-in-a-Windows-PC_6

Step 5: Click the Details button

Find-Subnet-Mask-in-a-Windows-PC_7

Your subnet mask will be listed under the Network Connection Details ( as shown below).

Find-Subnet-Mask-in-a-Windows-PC_8

Method 3: Calculate a Subnet Mask from the IP Address.

In cases where you can’t access command line or control panel, you can determine the subnet mask using the IP address itself by identifying the network portion and host portion of the IP address. For detailed steps, refer to, check How do I Find Subnet Mask for an IP Address?

How to Find Subnet Mask in a macOS?

Step 1: Click on the Apple icon and Go to System Preferences > Network

Step 2: Select the network connection you want to check

Step 3: Click the Advanced button at the bottom.

Step 4: Go to TCP/IP tab section, your subnet mask will be mentioned there

How to Find Subnet Mask in a Linux?

Step 1: Press Ctrl + Alt + T to open the Linux Terminal

Step 2: Type ifconfig and press Enter

ifconfig 

Step 3: Now, Find the subnet mask. The subnet mask usually starts with 255 and is labeled as ‘Mask.’

Conclusion

The subnet mask is important because it facilitates communication between devices within the same network. By these methods, you can determine the subnet mask of your specific operating system or by using an online subnet calculator. Another way is to get and install a third-party tool to identify your PC’s subnet mask.However, using third-party software is not recommended and will just occupy storage on your device.

How to Find the Subnet Mask of Your Computer – FAQs

How is subnet mask different from IP address?

A subnet is a logical subdivision of an IP address. One portion identifies the computer being used as the host, while the other portion identifies the network it is connected to.

Can I change subnet mask of my computer?

It is possible to modify your computer’s subnet mask; however, if you do it wrong, your network connection may be disrupted. To prevent connectivity problems, verify the new subnet mask one more time.

How to calculate subnet mask using subnet calculators?

You can calculate subnet mask using online subnet calculators. Just search online subnet calculator on your browser and choose any reliable subnet calculator, Input your IP address into the calculator. It will then provide you with the subnet mask and other related information network addresses, host ranges, and IP class etc.



Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads