Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Computers use unsigned long integers to store and represent ip addresses. What are the two formats?
Computers use unsigned long integers to store and represent ip addresses. What are the two formats?
Your question is ambiguous. What do you mean by two formats?

The common expressions of IP addresses (commonly used ip v4) that are convenient for people to read and write are similar to:192.5438+068.1.135, that is, four digits separated by decimal points; In fact, in computer machine processing, it is often converted into a 32-bit unsigned long integer; Pay attention to the conversion relationship before and after-four digits separated by decimal points, each of which actually corresponds to each of the 32 digits.

By the way, the length of ipv6 is 128 bits.