Skip to content

Changing the Cloudflare API IP address - #147

Open
eleutherifer wants to merge 1 commit into
throneproj:mainfrom
eleutherifer:patch-1
Open

eleutherifer wants to merge 1 commit into
throneproj:mainfrom
eleutherifer:patch-1

Conversation

@eleutherifer

Copy link
Copy Markdown

Problem

Due to network restrictions, the default API endpoint api.cloudflareclient.com is completely blocked and unreachable from Russia. This prevents users in this region from registering new consumer WARP accounts during the initial setup, breaking the first-run experience.

Desired outcome

Change the registration logic to use api.devices.cloudflare.com as the primary endpoint instead of api.cloudflareclient.com, or implement an automatic fallback.
Ideally, the application should try api.devices.cloudflare.com first, as it is currently accessible and fully functional for registration under these network restrictions. If that fails, it can fall back to api.cloudflareclient.com.

Alternatives considered

Instead of changing the default endpoint for everyone, a fallback mechanism could be implemented. The app could keep api.cloudflareclient.com as the primary choice, but if the registration fails or times out (which happens due to DPI blocking), it should automatically retry using api.devices.cloudflare.com.

Security, privacy, and compatibility impact

• DPI Circumvention: In Russia, api.cloudflareclient.com is actively blocked by DPI. Switching to or falling back to api.devices.cloudflare.com successfully bypasses this restriction.
• Compatibility: While the official Cloudflare client primarily uses api.devices.cloudflare.com for Zero Trust registration, practical testing confirms that this endpoint fully supports and processes standard consumer registration requests as well.
• Security & Privacy: No impact. Both are official Cloudflare domains using the same secure infrastructure and TLS configurations. No traffic or user data is exposed to third-party servers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant