How to Find Your Subnet Mask

Networks are broken up into subnetworks to allow for faster data transfer, and easier management. Routers accomplish this by assigning subnet masks, a number that indicates where to look in the IP address to determine the...

Method 1 of 4:

Windows Instructions

  1. Picture 1 of How to Find Your Subnet Mask
    Open Command Prompt. Press the Windows key and R at the same time to open the Command Prompt window.
    1. If this doesn't work, click the Start button or Windows logo in the lower left corner of the screen. Type "command prompt" in the search bar and double-click the icon that appears. You may need to press Search first to access the search bar.
    2. If there is no icon in the lower left, move your mouse to the lower right and swipe upward, or swipe from the right on a touch screen.
  2. Picture 2 of How to Find Your Subnet Mask
    Enter the ipconfig command. Type the words ipconfig /all exactly as they appear, with a space in between them. Hit the Enter key. Windows ipconfig is the program that keeps track of all of your network connections. This command will bring up a list with all of your network information.
  3. Picture 3 of How to Find Your Subnet Mask
    Find the subnet mask. This is located in the section titled "Ethernet adapter Local Area Connection." Find the line beginning "Subnet Mask" and look across to find your subnet mask.[2] Most subnet mask numbers begin with a string of 255s, such as 255.255.255.0.
  4. Picture 4 of How to Find Your Subnet Mask
    Look through the Control Panel instead. Here's another way to find this information:
    1. Navigate to Control Panel → Network & Internet → Network and Sharing Center.
    2. On most modern Windows systems, click "Change adapter settings" on the left. On Windows Vista, click "Manage Network Connections" instead.[3]
    3. Right-click "Local Area Connection" and select "Status." Click "Details" in the window that opens.[4] Look for your subnet mask.
Method 2 of 4:

Mac Instructions

  1. Picture 5 of How to Find Your Subnet Mask
    Click on the "System Preferences" icon on your dock. If that icon is not on your dock, click on the Apple logo on the top left of the screen and select "System Preferences."
  2. Picture 6 of How to Find Your Subnet Mask
    Click the "Network" icon. On the "System Preferences" window, the Network icon looks like a grey ball on most versions of Mac OS X. If you can't find it, type Network in the search bar on the upper right of the System Preferences window.
  3. Picture 7 of How to Find Your Subnet Mask
    Select your Internet connection from the list on the left. Click the name with a green dot next to it, and the word "Connected" underneath it.
  4. Picture 8 of How to Find Your Subnet Mask
    Click "Advanced" if using WiFi. This is located in the lower right. On most other types of network connections, you can already see the Subnet Mask labeled on the right side of your screen.
  5. Picture 9 of How to Find Your Subnet Mask
    Select the TCP/IP tab in the "Advanced" window. Mac TCP/IP specifies the communication method for accessing the network.
  6. Picture 10 of How to Find Your Subnet Mask
    Find your subnet mask. This should be clearly labeled "Subnet Mask," and begin with a 255.
    1. If the only numbers you see are on the lower half of the screen, underneath "Configure IPv6," you are on a local IPv6-only network, which does not use subnet masks. If you should be connected online, try selecting "Using DHCP" from the "Configure IPv4" drop-down menu, then pressing Renew DHCP Lease.
Method 3 of 4:

Linux Instructions

  1. Picture 11 of How to Find Your Subnet Mask
    Open a command line. If you're not sure how to do this, you'll need to find specific instructions for your build of Linux. You may wish to become more familiar with the command line before you continue as well.
  2. Picture 12 of How to Find Your Subnet Mask
    Enter the ifconfig command. In the command line window, type ifconfig and press Enter.[5]
    1. If nothing happens besides a message saying you need to be root (administrator), follow these instructions to gain administrator access.
  3. Picture 13 of How to Find Your Subnet Mask
    Find the subnet mask. This should be labeled "Mask" or "Subnet Mask." The number will begin with 255.
Method 4 of 4:

Setting Up a TV or Other Device

  1. Picture 14 of How to Find Your Subnet Mask
    Use the same subnet mark as a computer. When you are setting up a smart TV or other device, you may be told to input a subnet mask. This number is specific to your local network. For best results, follow the instructions above to find the subnet mask on your computer. The same number should work well for your device as well.
    1. If your device still won't connect, leave the information open on your computer. Refer to it while changing settings on the device.
    2. If you can't find the information on a computer, try entering 255.255.255.0. This is the most common subnet mask for home networks.
  2. Picture 15 of How to Find Your Subnet Mask
    Change the IP address. If the device still won't go online, check the IP address. This should be in the same screen where you can set the subnet mask. Compare it to the IP address of your computer, visible wherever you found your computer's subnet mask. Copy your computer's IP address, except for the final number or numbers after the last period. Choose any higher number instead, as long as it is 254 or below. Add at least 10, since nearby numbers are more likely to be used by additional devices on your network.
    1. For example, if your computer's IP address is 192.168.1.3, set your device's IP address to 192.168.1.100.
    2. If you can't find your computer's IP address, check your router for a printed label, or search online for your router's brand and "IP address." Change the final group of numbers.
    3. If you can't find any information, try 192.168.1.100, or 192.168.0.100, or 192.168.10.100, or 192.168.2.100.
  3. Picture 16 of How to Find Your Subnet Mask
    Set the Gateway. This should be set to the same Gateway value as your computer, which is also your router's IP address. This will almost always be the same as the device's IP address, except with a 1 instead of the final group of numbers.
    1. For example, if any device on your network has an IP address of 192.168.1.3, set the Gateway to 192.168.1.1.
    2. In any internet browser, type http:// followed by this value. If you have the correct gateway, you should reach information about your router.
  4. Picture 17 of How to Find Your Subnet Mask
    Set the DNS. Use the same DNS setting as your computer, or the same value as you entered under Gateway. Alternatively, search online for "public DNS" for more options.
  5. Picture 18 of How to Find Your Subnet Mask
    Contact the manufacturer. If your device still won't connect with these settings, contact technical support at the company that made the device.
Update 24 March 2020
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile