Converting a 32-bit integer into IP

Last update on November 19, 2008 06:30 AM by netty5
Published by netty5

Converting a 32-bit integer into IP






Number to convert: 3265917058

Binary representation

11000010 10101001 11110000 10000010 - 3265917058
00000000 00000000 00000000 11000010 - 3265917058 >> 24 ( 194 )

11000010 10101001 11110000 10000010 - 3265917058
10101001 11110000 10000010 00000000 - 3265917058 << 8
00000000 00000000 00000000 10101001 - (3265917058 << 8 ) >> 24 ( 169 )

11000010 10101001 11110000 10000010 - 3265917058
11110000 10000010 00000000 00000000 - 3265917058 << 16
00000000 00000000 00000000 11110000 - (3265917058 << 16) >> 24 ( 240 )

11000010 10101001 11110000 10000010 - 3265917058
10000010 00000000 00000000 00000000 - 3265917058 << 24
00000000 00000000 00000000 10000010 - (3265917058 << 24) >> 24 ( 130 )


Command use for conversion
$ echo 3265917058 | perl -ne 'print $_>>24 ,".",$_<<8>>24,".",$_<<16>>24,".",$_<<24>>24,"\n"'
194.169.240.130
Best answers for « Converting a 32 bit integer into IP » in :
Conversion of an IP address 32-bit Show Conversion of an IP address 32-bit We will make a ping kioskea.net in view retrieve the IP address (in bold) $ Ping-c1 kioskea.net PING kioskea.net (194,169,240,130) 56 (84) data bytes. 64 bytes from www.kisokea.org...
[C language]Handling 64-bit integers Show[C language]Handling 64-bit integers Unsigned 64-bit integer Example: Signed 64-bit integer Example: Basically in C language, an unsigned number over 32 bit can not exceed the value of 4 294 967 295. It may happen that you are...
Compiling/testing in 32-bit on Ubuntu X86-64 ShowCompiling/testing in 32-bit on Ubuntu X86-64 If you want compile a source code for testing purpose or to use it as a 32-bit binary,the main problem is that the headers of the standard library are not suitable for this purpose and that a...
How to convert Excel into PDF? ShowHow to convert Excel into PDF? Here is a small tips about how to convert your excel files into PDF for your presentation. Step 1 PDF995 is software that gets installed on your computer which enables you to print any sources of document to...
Download Quick Word to PDF ShowTo transfer your documents most in possible security, there is not better than format PDF. Then, to convert your documents Word into PDF, adopt the quick program Word to PDF. Quick Word to PDF is a tool which integrates with the interface of...
Download Mobile AMR Converter ShowFormat AMR is broadly used by mobile phones to record rings or to create MM (SMS with sound, picture and text). The converter AMR for mobile phone uses the converter AMR of Sony Ericsson to convert files AMR (Adaptive Multi-Rate Codec, *.amr) in...
Download Free Word/Doc Txt to Image Jpg/Jpeg Bmp Tiff Png ShowIt is usually the images that we insert into Word, Excel or PowerPoint documents. This time, it is the opposite, because we are going to convert these documents to image formats. All to Jpg / JPEG Image Bmp Tiff Png Converter is a powerful tool which...
Representation of real numbers and integers ShowRepresenting a number in a computer Representing (or encoding) a number means to express it in binary form. Representing numbers in a computer is necessary in order for it to be able to store and manipulate them. However, the problem is that a...
Random access memory (RAM or PC memory) ShowTypes of random access memory There are generally two broad categories of random access memory: DRAM memories (Dynamic Random Access Module), which are inexpensive. They are used essentially for the computer's main memory SRAM memories (Static...
Binary encoding ShowIntroduction to binary In the late 1930s, Claude Shannon showed that by using switches which were closed for "true" and open for "false," it was possible to carry out logical operations by assigning the number 1 to "true" and 0 for "false." This...