81.6k views
2 votes
Convert the IP address whose hexadecimal address 0xD31EC251 to dotted decimal notation. Your answer must be exact. Use the format 255.255.255.255 and DO NOT enter any spaces.

User Emperatriz
by
7.0k points

1 Answer

4 votes

Answer:

211.30.194.81

Step-by-step explanation:

IP addresses use 8 bits for each of the four digits in decimal notation, or 2 digits in hexadecimal notation.

Hexadecimal numbers use digits from 0 to 9 and A to F, for decimal numbers in the range from 0 to 15.

To convert from hexadecimal to decimal, we need to know that each digit will have the value:
n*16^(p)

Where n is the hexadecimal number to convert, and p is the digit position.

For example, for D3:


3*16^(0) + D*16^(1) = \\3*16^(0) + 13*16^(1) =\\3*1 + 13*16 =\\3+208=\\211

Splitting the given address (0xD31EC251) in pairs:

1st digit: D3 = 211 decimal

2nd digit: 1E = 30 decimal

3rd digit: C2 = 194 decimal

4th digit: 51 = 81 decimal

Joining all the values using the dotted notation:

211.30.194.81

User Ggeorge
by
7.1k points