top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to convert an IPv6 address into IPv4 address?

0 votes
How to convert an IPv6 address into IPv4 address?
posted Sep 21, 2018 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
This maynot be complete answer, but having worked on ipv6 header compression quite sometime back. this gives some memory.

Google is giving me some hints:
I guess you might be aware that the ipv4 uses the 32 bit address and ipv6 is 128 bit address.

I got the following easy conversion method from the google. (not self made, I am not networks engineer :) )

Lets take the following ipv6 address :

Take the portion  B0A8:6301. And divide into groups of 2 hex characters :
B0, A8, 63, 01

Since it is hex, (i.e base 16), convert back to decimal

1) (11*16)+(0*1)=176

2) (10*16)+(8*1)=168

3) (6*16)+(3*1)=99

4) (0*16)+(1*1) = 1

this gives ipv4 address:
Here is an addition to the question, What if I use a VPN to [Hide IP Address][1] online? Does it cover the IPv6 Leak Protection as well or do I have to enable it specifically from admin dashboard?


Similar Questions
+4 votes

An eNodeB in LTE has many interfaces like M2, X2, S1-C , S1-U . What could be the possible deployment case ? Will all interfaces use same IP address as transport or different IP addresses for each interface ?

+1 vote

I want a JAVA program. That gets the website name from the user and prints the IP Address of that website.

+3 votes

Any opensource code would be a great help :)

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.