According to the Encarta Dictionaries (2016), Internet protocol (IP) refers to the standard that controls the routing and structure of data transmitted over the internet. By this standard, a unique string of numbers known as IP address is assigned to every network node over the internet for the purposes of identifying network interface and location addressing. Every internet connected application or computer has its own IP address and the website domain name is translatable to its original IP address using DNS (Domain Name Service) look up tool.
For a number of reasons, such as when we want to program network applications or bypass restricted access websites, it is useful to convert an IP address to a 10 digits decimal format.
In this article, we will learn how to do just that!
Basically, there are three steps in converting an IP address to a 10 digits decimal format.
In this first step, we will get the IP address for our desired domain (in this article, our desired domain is google.com).
Here, you do a DNS look up for the desired domain on any DNS look up tool (there are a number of free DNS look up tools which can be found using search engines such as Google search engine).
Alternatively, we can ping the domain name from Windows XP Command Prompt as follows:
Next, you type: Ping google.com
The IP address of the domain name will appear as follows:
Microsoft Windows XP [Version 5.1.2600] (C)
Copyright 1985-2001 Microsoft Corp.
C:Documents and SettingsAdministrator>pinggoogle.com
Pinging google.com [188.8.131.52] with 32 bytes of data:
Reply from 184.108.40.206: bytes=32 time=197ms TTL=235 Reply from 220.127.116.11: bytes=32 time=191ms TTL=235 Reply from 18.104.22.168: bytes=32 time246ms TTL=235 Reply from 22.214.171.124: bytes=32 time=185ms TTL=235
Ping statistics for 126.96.36.199: Packets: Sent=4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 185ms, Maximum = 246ms, Average = 204 ms
It is apparent from the foregoing that the IP address for the domain google.com is 188.8.131.52
Note: Google has a number of servers, it is therefore, possible your ping results will generate a different but equally valid result as IP address.
In this second step, we shall use an equation to calculate the final 10 decimal digits. Google IP address as we have seen from above is 184.108.40.206 Original Format: IP address = w. x. y. z = 220.127.116.11 Equation: IP Decimal Number = 16777216*w + 65536*x + 256*y + z We then replace the w, x, y, z variables with the original IP address numbers. W = 64 X = 233 Y = 187 Z = 99 The equation is then calculated thus:
= 16777216*64 + 65536*233 + 256*187 + 99
Using the in-built Windows calculator or a piece of paper, we calculate
= 1073741824 + 15269888 + 47872 + 99
The final value is
Step 3 is to test the 10 digit decimal number.
Here, you first open your favorite browser.
Type into the browser's address bar as follows:
Then press Enter
The browser should redirect to google.com homepage.
We are working on a project to collaborate with educational institutions for encouraging students to be passionate about technology.
© 2017 freecsstutorial.com- All Rights Reserved.