IP address Coming Through API

I know IP address is very important to have for a contact being added to a list. Working on a project that integrates with the API I have noticed that some of the users that get added have the IP 0.0.0.0 but others work just fine. Has anyone else experienced this and any idea what the cause could be?

I am running the domain through CloudFlare so wonder if that could possibly be the cause but then I would think that more of the contacts would have messed up IP addresses. Also wondering if it is something to do with people having an IPv6 address…

1 Like

I would think that if people have set their browser to private browsing, then the IP address would not be available and it would be reported as 0.0.0.0

Private browsing doesn’t change your IP address, just stop things been recorded on your browser (history etc)

Test in Google Incognito Mode - https://www.whatismyip.com/

Usually means via localhost, eg http://localhost / http://127.0.0.1
Is it not your developer doing these requests?

Sharry

Hi there, Amy from ActiveCampaign’s Customer Experience Team. We’re just refreshing our forum page and I wanted to add some help here for anyone who comes across this page/question/post.

There are a few reasons this could be happening:

CloudFlare can indeed affect the visibility of IP addresses, as it acts as a reverse proxy. In some cases, requests may appear to come from CloudFlare’s IP addresses rather than the actual client’s IP address. However, this usually doesn’t result in all IP addresses being recorded as 0.0.0.0.

Depending on the setup, you’ll need to ensure that your API implementation is correctly capturing and passing the IP address(es) of the contacts being added to the list. If there are any issues with how the IP address is being retrieved or passed to ActiveCampaign, it could result in inconsistencies.

Lastly, ensure that the IP addresses you’re attempting to add are valid and correctly formatted. Invalid or improperly formatted IP addresses could potentially result in the 0.0.0.0 placeholder being used.

Thanks!