How do you convert an IP address to hexadecimal?

Convert the 32 bits binary ip address into dotted decimal notation100111000000000111100110000000111?

  • Answer:

    People often refer to the sections of a dotted decimal IP address as an octet for example, with the address 192.168.0.1, 192 is an octet, 168 is an octet, 0 is an octet and 1 is an octet. They call it this because each part of the IP address I just describes refers to 8 bits of the 32 bit IP address. Case and point: 192 = 11000000 168 = 10101000 0 = 00000000 1 = 00000001 To create the whole IP address in binary, I just put one after the other in the order they would appear in a IP address so 192.168.0.1 = 11000000101010000000000000000001. It's important to remember that every octet is 8 bits long hence why it's named an octet so, even though 0 in decimal is 0 in binary, in a IP address 0 in decimal is 00000000 in a IP address. Now that you understand how to convert a dotted decimal IP address into binary it should be clear how to change it back the other way around. Since your number is too long I am just gonna chop off the right most 1. Your first number, which is the left most 8 bits of the IP address is 10011100 which is 156 in decimal. We do this for each set of 8 bits afterwards so we would have: 10011100 = 156 00000001 = 1 11100110 = 230 00000011 = 4 This would create a final dotted decimal IP address of 156.1.230.1. Keep in mind your number is too long so I had to throw away a digit which means it may have been the wrong one and this isn't what the initial IP was supposed to be but now that you know the method you can re apply it to the proper binary IP address and see what the dotted decimal version is.

wiki.answers.com Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.