Find IP IPv4 Network/Subnet and its host address ranges

What is an IPv4 IP address its network and host address ranges?

An IPv4 IP address is an address used in order to uniquely identify a device on an IP network. The address is made up of 32 binary bits, which can be divisible into a network portion and host portion with the help of a subnet mask. The 32 binary bits are broken into four octets (1 octet = 8 bits). Each octet is converted to decimal and separated by a period (dot).

How to Subnet IPv4? Its simple answer is that subnetting is the process of taking a network and splitting it into smaller networks, known as subnets. It's used to free up more public IPv4 addresses and segment networks for security and easier management.
Following are the ranges of IPv4 subnet/network address and their host addresses.

NetworkFirst HostLast Host

How we got IPv4 subnet masks?

An IPv4 subnet mask consists of 32 bits; it is a sequence of ones (1) followed by a block of zeros (0). The ones indicate bits in the address used for the network prefix and the trailing block of zeros designates that part as being the host identifier.