Question
Form submission via API with an IP address in ipv6 format?
Is there a way to submit a form via the rest API for an IP address in the IPv6 format?
More precisely, we are struggling with the following:
We are using gravity forms + a webhook that calls the marketo lead API, namely: https://developers.marketo.com/rest-api/endpoint-reference/lead-database-endpoint-reference/#!/Leads/SubmitFormUsingPOST.
Increasingly, form submissions don't come through because the IP address is not in the right format (IPv6 instead of IPv4, as is required by the API in the Visitor Data - leadClientIpAddress parameter).
We could clear the IP before submitting it to the API whenever we recognise the ipv6 format, but I'd prefer not to do that so that our inferred field data is not lost. Also, I don't believe this is future proof as IPv6 will become more used in the future.
Anybody familiar with this problem and have a possible solution for us? All help much appreciated!