Added ToShortestVersion, convert ipv4 in ipv6 format to ipv4.