How do I find the IP addresses used by Codemagic build machines?

Last updated: July 14, 2026

Context

If you have IP-restricted APIs or services that Codemagic needs to access during a build, you may need to know the public IP addresses used by Codemagic build machines in order to whitelist them.

Answer

Codemagic builds are not guaranteed to run on the same machine every time, so you should not rely on a single static IP address. Instead, whitelist the following IP ranges used by Codemagic build machines:

  • 34.74.234.56/32

  • 35.185.76.207/32

  • 38.22.7.112/29

  • 66.185.17.80/29

  • 66.185.18.0/29

  • 207.254.42.240/29

If you need to verify the specific public IP address used by a particular build, you can add the following command to your pre-build script in your workflow:

curl ifconfig.co

This will output the public IP address of the build machine in the build log for that specific run.

For more information, refer to the Codemagic documentation.