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 subnetwork.[1] In most cases, finding the subnet mask on a computer is an easy task. Other devices present more of a challenge. If one prompts you to enter the subnet mask, you can usually use the same one as your computer.

Steps

Windows Instructions

  1. Open Command Prompt. Press the Windows key and R at the same time to open the Command Prompt window.
    • 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.
    • 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. 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. 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. Look through the Control Panel instead. Here's another way to find this information:
    • Navigate to Control Panel → Network & Internet → Network and Sharing Center.
    • On most modern Windows systems, click "Change adapter settings" on the left. On Windows Vista, click "Manage Network Connections" instead.[3]
    • Right-click "Local Area Connection" and select "Status." Click "Details" in the window that opens.[4] Look for your subnet mask.

Mac Instructions

  1. 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. 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. 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. 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. Select the TCP/IP tab in the "Advanced" window. Mac TCP/IP specifies the communication method for accessing the network.
  6. Find your subnet mask. This should be clearly labeled "Subnet Mask," and begin with a 255.
    • 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.

Linux Instructions

  1. 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 Work-in-Linux-at-the-Command-Line before you continue as well.
  2. Enter the ifconfig command. In the command line window, type ifconfig and press Enter.[5]
    • If nothing happens besides a message saying you need to be root (administrator), Become-Root-in-Linux to gain administrator access.
  3. Find the subnet mask. This should be labeled "Mask" or "Subnet Mask." The number will begin with 255.

Setting Up a TV or Other Device

  1. 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.
    • If your device still won't connect, leave the information open on your computer. Refer to it while changing settings on the device.
    • 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. 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.
    • For example, if your computer's IP address is 192.168.1.3, set your device's IP address to 192.168.1.100.
    • 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.
    • 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. 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.
    • 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.
    • In any internet browser, type http:// followed by this value. If you have the correct gateway, you should reach information about your router.
  4. 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. Contact the manufacturer. If your device still won't connect with these settings, contact technical support at the company that made the device.

Tips

  • If your subnet mask reads all zeros (0.0.0.0), you may not have an active Internet connection.
  • The subnet mask will appear on the active adapter. For example, if you are using your wireless card, the subnet mask number will appear under that card. If you have more than one adapter, such as a wireless card and a network card, you may need to scroll up or down to find that field.
  • IPv6–only networks do not use subnet masks. The subnet ID is built into the IP address instead.[6] The fourth group of digits separated by colons describes your subnet (or the 49th–64th binary digits).

Warnings

  • Changing your subnet mask can turn off your Internet connectivity.

Sources and Citations