[BUG] It seems Digital Ocean IPs cannot access Claude Code atm

Status Fixed / completed
Maintainer reply ✓ Yes — catherinewu
Activity 11 comments · opened May 7, 2025 · closed Nov 30, 2025
💡 Likely answer: A maintainer (catherinewu, contributor) responded on this thread — see the highlighted reply below.

All 3 of our servers are returning this message:

Unable to connect to Anthropic services

Failed to connect to console.anthropic.com: Request failed with status code 403

Please check your internet connection and network settings.

Note: Claude Code might not be available in your country. Check supported countries at
https://anthropic.com/supported-countries

On other servers however using Linode, it was driving me mad but I'm 100% this is what's going on. Can someone look into why the IPs are being blocked? I am connecting from legit countries, USA, Germany and Israel.

View original on GitHub ↗

11 Comments

notnullxyz · 1 year ago

I can confirm this. Via claude code, or direct curl tests from cli to console/api, 403 globally.

Failed to connect to console.anthropic.com: Request failed with status code 403 
gmbvdl@myb:~$ wget --server-response --spider console.anthropic.com 2>&1 | grep "HTTP/" | awk '{print $2}'
301
403

If it is indeed DO IP nets being blocked, why are they blanket blocked like this instead of specifically. Bit erratic

jvirico · 1 year ago

Same for me connection from Azure VMs in West Europe.

phototeknyc · 1 year ago

Im on DO and I'm getting the same message. Please advise.

printcotton · 1 year ago

I'm also on Digital Ocean and receiving the same message. Extremely frustrating and negatively impacting.

plappag · 1 year ago
I'm also on Digital Ocean and receiving the same message. Extremely frustrating and negatively impacting.

Yeah it forced me to get WSL installed and just use that. You can still use Claude Code effectively like that.

alosec · 1 year ago

EDIT — 6:07 pm CT: seems to be resolved for at least one machine, checking others

Same issue. Fine yesterday 05-06, can’t access starting today 05-07. Getting response 403 or 401 on any type of call (curl -v https://console.anthropic.com gets 403, and claude code use gets 401 expired OAuth token, unable to login again effectively).

This genuinely appears to be a blanket blacklist of DO ip’s. Super curious what is the reason. Unfortunately if this continues I need to pick to drop DO or CC, and I’d rather drop neither!

nerdneilsfield · 1 year ago

I am not use in cloud, just in my home network will get those bugs too. In California

SamPeng87 · 1 year ago

This is Claude's Cloudflare Shield. According to my tests, globally, any server using curl receives a 403. It's not a real 403, but rather waiting for a CAPTCHA verification, which the CLI environment cannot handle. Only console.anthropic.com behaves this way; the actual working api.anthropic.com seems to have no issues. I believe Claude considers this a very good way to protect their business.

github-actions[bot] · 10 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

catherinewu contributor · 9 months ago

Hi - thanks for reporting. Please re-open with repro steps if this error is still occurring. Thank you!

github-actions[bot] · 8 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.