I have application that uses IPv4 addresses (it stores them as long), so it only understands IPv4 addresses.
IPv4
Is it possible to convert
Here is the code you are looking for in javascript. Well you know you can't convert all of the ipv6 addresses