Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

manual conversion of IP address to hexadecimal and other forms?

How to convert IP address to other forms such as hexadecimal, decimal and binary manually?

Provide links if possible.

10 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    an ip4 address is made up of 4 parts with values between 0-255.

    ip4 address: 255.255.255.255

    255 is $ff in hex ... so an ip address like 255.255.255.255 is $ff ff ff ff in hexadecimal.

    another example would be:

    192.168.3.127 = $c0.$a8.$03.$7f

    ... and $c0a8037f ... converts to 3232236415 in decimal system.

    converting from hex to binary is easy (easier than converting decimal to binary!) and can easily be done by hand without need of an calculator... the values 0-9/a-f make up 4 bits (0000 - 1111 in binary) .. and 2 hex-digits need 8bits (=1 byte).

    $c0.$a8.$03.$7f =

    1100 0000 . 1010 1000 . 0000 0011 . 0111 1111 in binary.

    As you can see an IP4 address can easily be converted into an 32bit value. If you have IP6 addresses then you need an additional 16bit (=48bits) to store an ip address.

  • Anonymous
    6 years ago

    This Site Might Help You.

    RE:

    manual conversion of IP address to hexadecimal and other forms?

    How to convert IP address to other forms such as hexadecimal, decimal and binary manually?

    Provide links if possible.

    Source(s): manual conversion ip address hexadecimal forms: https://shortly.im/vimZU
  • ?
    Lv 4
    4 years ago

    Ip Address To Hex

  • Anonymous
    5 years ago

    manual conversion ip address hexadecimal forms

  • How do you think about the answers? You can sign in to vote the answer.
  • ?
    Lv 4
    5 years ago

    Hex To Ip

  • Adrian
    Lv 7
    1 decade ago

    There are a lot of different IP calculators on the internet.

    Just for an example:

    http://www.softsea.com/download/Advanced-IP-Addres...

    I know you asked for "manual", well that is only basic high school (or senior grade school) mathematics. Hopefully you have the basics already...

  • Miha L
    Lv 7
    1 decade ago

    Here is free online IP converter:

    http://www.ipaddresslocation.org/convertip.php

  • 1 decade ago

    Try this web site:

    http://www.get-ip.com/

    You will find an obfuscated number for any IP you need to know.

  • Anonymous
    5 years ago

    For the best answers, search on this site https://shorturl.im/ayktM

    /*C++ Program to convert IP Address to Hexadecimal Form*/ #include <iostream.h> void dtoh(long d) { long c=0,a[5],i=0; long b; b=d; while (b>15) { a[i]=b%16; b=b/16; i++; c++; } a[i]=b; for (i=c;i>=0;--i) { if (a[i]==10) cout<<"A"; else if (a[i]==11) cout<<"B"; else if (a[i]==12) cout<<"C"; else if (a[i]==13) cout<<"D"; else if (a[i]==14) cout<<"E"; else if (a[i]==15) cout<<"F"; else cout<<a[i]; } return; } void main() { unsigned long a,b,c,d; // Get the IP address from user cout<<endl<<"Enter an IP address in dotted quad notation (x.x.x.x)"<<endl; cout<<endl<<"with each section seperated by a space (x x x x)"<<endl; cin>>a>>b>>c>>d; // Call to function to convert IP to Hexadecimal Form cout<<endl<<"The converted address is: "<<endl; dtoh(a); dtoh(b); dtoh(c); dtoh(d); }

Still have questions? Get your answers by asking now.