How to convert IPv4 into IPv6

In my effort to maintain a universal standard in all future IP addressing I need to detect, convert and store any IPv4 as IPv6.  Then my application uses the IPv6 accordingly.  How do I accomplish this?  I need to both detect and convert the IP address as needed.  Obviously some cases would begin with an IPv6 and require no conversion.

We're now in an IPv6 world, gone are the days of memorizing IP addresses;-)

Thanks,

Phil
Phil5780Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
bevhostConnect With a Mentor Commented:
eg:
in IPv6, 192.0.2.128 can be written as  ::ffff:192.0.2.128
0
 
kanalQkoConnect With a Mentor Technical Support EngineerCommented:
please look here: http://www.fnode.com/2009/11/convert-ipv4-into-ipv6/
hopefully it helps
0
 
Phil5780Author Commented:
Works great, thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.