depends on the subnet mask ie/ 255.255.255.252 which would mean 175.124.35.0,4,8,12,16etc etc are networks and 175.124.35.1 & .2 are hosts. .3 is the broadcast address for that subnet.
Seeing as the IP address of 128.107.10.11 is a class B network, the host portion is 10.11
host portion.
Network Portion Host Portion
It is a class in Java which represents an Internet Protocol (IP) address. An instance of an InetAddress consists of an IP address and possibly corresponding hostname. The Class represents an Internet address as Two fields: 1- Host name(The String)=Contain the name of the Host. 2- Address(an int)= The 32 bit IP address. This fields are not public, so we cant Access them directly. There is not public constructor in InetAddress class, but it has 3 static methods that returns suitably initialized InetAddress Objects. public String getHostName() public byte[] getAddress() public String getHostAddress()
to ping a local host you would type what address
Seeing as the IP address of 128.107.10.11 is a class B network, the host portion is 10.11
In an IP address, the network portion identifies the specific network to which a device belongs, while the host portion identifies the individual device within that network. This structure allows for efficient routing of data across the internet by segregating the address into parts that signify the network and the specific device. The division between the network and host portions is determined by the subnet mask, which specifies how many bits are allocated to each portion. For example, in the IP address 192.168.1.10 with a subnet mask of 255.255.255.0, "192.168.1" represents the network portion, and "10" represents the host portion.
The last 3 octets represent the host portion in a class A address.
It is a class B address (The first three numbers (octet) are between 128 and 191), meaning it has a subnet of 255.255.0.0, thus, 129.219 is the network portion, with 51.18 representing the host portion.
host portion.
The host portion of an IP address of all zeros indicates that you are referring to 'this network'. For example, the address 145.5.0.0 means the network 145.5
Host ID
Network Portion Host Portion
Subnetwork
When we express an IPv4 network address, we add a prefix length to the network address. The prefix length is the number of bits in the address that gives us the network portion. For example, in 172.16.4.0 /24, the /24 is the prefix length - it tells us that the first 24 bits are the network address. This leaves the remaining 8 bits, the last octet, as the host portion.
The host portion specifies the particular network interface's address. The network portion specifies the network address.
Subnet mask