Ip | Hex |
---|
IP (Internet Protocol) addresses are used to identify devices on a network. They are typically written as four numbers separated by periods, such as 192.168.1.1. Each number is called an octet and can range from 0 to 255.
Hexadecimal notation is a way of representing numbers that uses a base of 16. Each digit in a hexadecimal number represents a multiple of a power of 16, with the rightmost digit representing 1 and each digit to the left representing a multiple of 16 times the previous digit.
To convert an IP address from its standard notation to hexadecimal, you would take each octet and convert it to hexadecimal. For example, the IP address 192.168.1.1 would be converted to the hexadecimal number C0A80101.
192 = C0 168 = A8 1 = 01 1 = 01