Is it possible to change my IPv4 address?

Why does prefixing a zero to a dot-decimal notated IPv4 address change its calculated destination?

  • If you add a 0 to a single represented octet it changes the address and I can't figure out why. 172.16.220.254 == 10101100.00010000.11011100.11111110 but, 172.016.220.254 = 10101100.00001110.11011100.11111110 becoming 172.14.220.254 10.10.10.1 == 00001010.00001010.00001010.00000001 but, 010.10.10.1 = 00001000.00001010.00001010.00000001 becoming 8.10.10.1 This only effects octets with values greater than 7, also the difference in the result changes with the value of the octet. Here are some more examples: 10.10.10.010 == 10.10.10.8 10.10.10.011 == 10.10.10.9 10.10.10.0100 = 10.10.10.64 10.10.10.0200 = 10.10.10.128 10.10.10.0300 = 10.10.10.192 10.10.10.0377 = 10.10.10.255 The only thing I can see is like binary, but base 8 instead of base 2 with 0(512), 64, 8, 1. 0.0.0.0 |..|..|..| |..|..|..L(Value 0-7, number of 1s) |..|..| |..|..L(Value 0-7, number of 8s) |..| |..L(Value 0-3, number of 64s) | L(Tells to calculate as base 8 system?)

  • Answer:

    It seems like prefixing a number with 0 will make the computer (or program or system or software or whatever) think it as base 8 instead of base 10. So 16 base 10 = 00010000 = 020 base 8. Try changing your example 10.10.10.10 to 010.010.010.010 ... I bet you it'll be treated as 8.8.8.8 One other interesting thing that you may want to try is this address: 19.19.19.19 and change it as 019.019.019.019. Since 9 is not a valid base 8, I think it may keep it as base 10 which will give your the same result or perhaps it'll think of it as base 16 which will give you 25.25.25.25.

sean_sho... at Yahoo! Answers 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.