Timeline for Convert decimal number to ipv4 format
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 10, 2014 at 3:09 | history | edited | Tim Caiazza | CC BY-SA 3.0 |
Adding the pen and paper example from the comments
|
Sep 19, 2014 at 7:38 | comment | added | John Jensen | @TimCaiazza I'd suggest editing your original answer to include your steps for the paper and pen conversion - this is good content | |
Sep 19, 2014 at 1:12 | comment | added | toadalskiii | Though the method is a liitle bit lengthy but works perfectly and smoothly. Thanx again. | |
Sep 18, 2014 at 21:01 | comment | added | Tim Caiazza | You'll have to convert both to decimal form, add the two and convert from decimal to binary. When you convert 122.13.17.34 to binary break each octet out and convert that to binary, which will give you 01111010.00001101.00010001.00100010 then remove the dots can you get 01111010000011010001000100100010. Now convert that to a decimal number and you'll get 2047676706. Now 2047676706 + 1023 = 2047677729. Convert that back to binary and you'll get 01111010000011010001010100100001. Now breaking that up into octets and just convert those octets back to decimal and you'll get 122.13.21.33 | |
Sep 18, 2014 at 20:35 | comment | added | toadalskiii | Thanx a lot. Could you tell me how to add 122.13.17.34 and 0.0.3.255 both are in ipv4 format. | |
Sep 18, 2014 at 20:34 | vote | accept | toadalskiii | ||
Sep 18, 2014 at 20:12 | comment | added | Tim Caiazza | To convert 1023 into IP format first convert it to binary (here is a guide if you are unfamiliar with how to wikihow.com/Convert-from-Decimal-to-Binary) You'll get 1111110101 and as a 32 bit number it would be 00000000 00000000 00000011 11110101 Then convert each octet into decimal which will give you 0.0.3.255 | |
Sep 18, 2014 at 19:41 | comment | added | toadalskiii | I am not using any language. I want to convert it on a paper with a pen. | |
Sep 18, 2014 at 19:32 | history | answered | Tim Caiazza | CC BY-SA 3.0 |