The format of the host IP address is: 1. Binary format, for example "11001010011001010110100101000010"; 2. Decimal format, for example "202.101.105.66". The IP address uses decimal format to facilitate the use and management of users and network administrators.
The format of the host IP address is binary format and decimal format. The decimal format is converted from the binary format. The IP address uses decimal format to facilitate the use and management of users and network administrators.
The binary IP address format has 32 bits, for example: 10000011, 01101011, 00000011, 00011000; each eight bits expressed in decimal is 131.107.3.24, which is the host IP address we usually see. .
For IPv4 (IP version), the IP address is composed of a 32-bit binary number, but such a sequence of numbers is undoubtedly very lengthy and difficult to read and remember. In order to facilitate people's memory and use, this sequence of numbers was divided into 4 groups, each group has 8 digits, and was changed to represent decimal numbers. Finally, it was separated by small origins, so it evolved into "10 points." Hexadecimal representation format".
Let’s take a look at the specific conversion process of the IP address just now:
IP address: 11001010011001010110100101000010
After being divided into 4 groups: 11001010 01100101 01101001 01000010
Decimal Representation: 202 101 105 66 www.2cto.com
Dot representation: 202.101.105.66
The above is the detailed content of What are the host IP address formats?. For more information, please follow other related articles on the PHP Chinese website!