With the subnet mask 255.255.255.0, the first three numbers of an IPv4 address are the network and the last number is the device. 192.168.1.20 and 192.168.1.30 can talk locally. 192.168.2.20 is a different network. The mask is a reading rule for addresses you already have. It does not change the speed on the ISP plan.

Address Network Device Same local network as 192.168.1.20?
192.168.1.20 192.168.1 20 Yes, it is that device
192.168.1.30 192.168.1 30 Yes
192.168.2.20 192.168.2 20 No

The first two share 192.168.1, so under this mask they are neighbors. The third changes the third number, from 1 to 2, so it is a different network. Neighbors can talk locally. A device on the other network is not a neighbor under this mask, even if the last number is also 20.

/24 is the same mask

/24 means the same thing as 255.255.255.0. The 24 counts bits, from the left. An IPv4 address is 32 bits, four numbers of 8 bits each. 255 in binary is eight 1s. Three groups of 255 are 8 + 8 + 8 = 24 bits set aside for the network. The last group, the 0 in 255.255.255.0, is the device. That is why 192.168.1.20 and 192.168.1.30 differ only in the last number and still share a network, and why 192.168.2.20 does not.

If the device shows 255.255.255.0 or /24, the table is the rule in front of you: three numbers for the network, and the last number for the device. A different mask on the device follows a different split. The worked example above stays with 255.255.255.0.

What IPv4 is is the four-number format itself. Each number still has to fall between 0 and 255. The mask does not relax that. It only says which of the four numbers identify the network.

Why local devices disappear

A wrong mask can make local devices invisible to each other. Suppose one computer is 192.168.1.20 with mask 255.255.255.0, so it treats every 192.168.1 address as local. Another device on the same desk is configured so that it does not agree which addresses are local. Each side then fails to treat the other as a neighbor. File sharing, a printer, and a local game can fail while both devices still reach the internet through the router, or one of them fails to reach anything off its own desk. The symptom is "these two cannot see each other," not "the plan dropped from one Mbps tier to another."

The addresses in the table are private addresses, the kind used inside a home. What a private IP address is explains that those addresses stay on the local network. What is my IP shows the public address a website sees, which is a different number from 192.168.1.20. Changing the mask on a laptop does not rewrite that public address into a faster plan. What an IP address is keeps the public and private roles straight when the two numbers are easy to mix up.

The gateway has to be on the same network

The default gateway is the address your device uses for traffic leaving the local network. Under 255.255.255.0, that gateway has to sit on the same network as the device, or the device will not treat it as a local neighbor. Homes do not share one fixed last number for that address. The gateway and the device have to agree on what counts as local, or traffic that should leave the network has no next step.

A modem and a router are the boxes people confuse with the mask. The modem brings in the provider. The router is usually where the private addresses and the mask are handed out. The mask is a setting on that local network. It is not the package the provider sold, and it is not the public address on a lookup page.

If two devices should talk locally and cannot, check that they share the first three numbers and that both use 255.255.255.0, or /24, before you change plans. If they already match the table and still cannot talk, the mask is not the remaining suspect. If a speed test on one of them looks like the plan, the mask did not throttle the ISP. It only decides who counts as a neighbor on the way to the router.

Common questions

Is /24 a different mask from 255.255.255.0?

No. /24 means the same thing as 255.255.255.0. Both say the first 24 bits are the network and the last 8 bits are the device.

Will a wrong subnet mask slow my internet plan?

It can make local devices invisible to each other. The ISP plan does not change. A speed test still measures the path that is working, not a new package speed.