I was playing around with my Samsung TV trying to hide other network UPnP/DLNA devices such as Sonos speakers from showing up as source inputs on the TV.

I figured I would manually configure my TV to be on a separate subnet from those other devices but I ended up just setting a manual IP address ( and subnet mask of along with the gateway IP ( and it actually works!! I can’t understand how or why.

The DLNA devices are no longer showing up as inputs and more importantly the internet is still working on the TV. How can the internet be working if a subnet mask of only allows for one host which should mean that my TV shouldn’t be able to reach the gateway.

I guess I’d like to understand how or why it’s working.


1 Answer 1


Subnet mask and a gateway are not fancy magic things. They just sets some "automatic" routes.

When you configure, say,, all it does it installs a corresponding route like via NIC, where NIC is your network card.

When you also specify a default gateway, say,, it just adds a route like default via or, in more explicit form, via Notice you gain access to the gateway itself with the help of previous "subnet mask" route, for this to happen gateway must belong to the configured subnet.

But you can add all routes explicitely! You might add address with the mask /32, then install a device route to your gateway system (in Linux: ip route add dev NIC) and then install a route to internet through the gateway (in Linux: ip route add default via, your internet would work, despite the fact you are used the /32 net mask.

Probably, something like this is happening in your network.

Another possibility is to set up default route to the internet directly via NIC, i.e. ip route add default dev NIC, but I don't sure if such route could work on the TV with it's stripped down operating system. But such route could work in Mikrotik, Cisco and so on.

  • Thanks. It looks like this is being done behind the scenes by the device itself. When I try this on a Windows computer I get the warning message “The default gateway is not on the same network segment (subnet) that is defined by the IP address and subnet mask. Do you want to save this configuration?” Yet it still works. I tried on an iPhone and it behaves the same way. Jan 23, 2021 at 21:24
  • I reworded an answer to be more clear why gateway must belong to the netmask and that is just sets another route that you may set by hand. (I'm so used to it that I forget it needs to be explained, sorry.) If you are following my recipe in Windows, you don't specify gateway in the GUI at first. Also notice I don't know how to set "device route" in Windows", you have to figure that out. Jan 24, 2021 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.