What is Binary?
Binary is the language that the computer speaks in and it consists of zero's and one's e.g. 110100101101.
Without a protocol, these numbers would mean nothing. You need to tell the computer how to read the numbers e.g. 1010101111010 could mean nothing if the computer read it as text but a butterfly if read as a picture.
Converting Binary into an IP4 and vise versa.
A IP4 address is made up of 32 bits (4 bytes) and consists of 4 sets of numbers that are 8 bits each (one digit is one bit - 11010010 = 8 bits/1 byte).
An IP address = 192.168.1.1 which would look something like 11001100.10100101.01101010.00101101 in binary.
The biggest IP address you can get is 255.255.255.255
To convert an IP into binary, you simply use the 8 numbers below to add up to the byte you want to convert.
128 goes into 192, so we put a 1. We are now left with 64.
then we go to the next number along which is a 64.
64 - 64 = 0 so we put a 1.
We have now reached 192 by adding the first 2 numbers together.
Our conversion should look like this - 11000000.
11000000 = 192.
1 1 0 0 0 0 0 0
And to convert it back you do the reverse.
This is quite hard to understand, especially because i am writing it down.
As always, if you have any questions please comment and i will answer you.