[BUG] /login leads to invalid IP Address
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
I was kicked out during a session and I tried to relogin:
claude
▐▛███▜▌ Claude Code v2.0.49
▝▜█████▛▘ Sonnet 4.5 · Claude Max
▘▘ ▝▝
/login
OAuth error: Invalid IP address: undefined
Press Enter to retry.
I tried ten times. Not working anymore. I am behind a proxy.
What Should Happen?
login should succeed
Error Messages/Logs
I was kicked out during a session and I tried to relogin:
claude
▐▛███▜▌ Claude Code v2.0.49
▝▜█████▛▘ Sonnet 4.5 · Claude Max
▘▘ ▝▝
> /login
OAuth error: Invalid IP address: undefined
Press Enter to retry.
I tried ten times. Not working anymore. I am behind a proxy.
Steps to Reproduce
I was kicked out during a session and I tried to relogin:
claude
▐▛███▜▌ Claude Code v2.0.49
▝▜█████▛▘ Sonnet 4.5 · Claude Max
▘▘ ▝▝
/login
OAuth error: Invalid IP address: undefined
Press Enter to retry.
I tried ten times. Not working anymore. I am behind a proxy.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
v2.0.47
Claude Code Version
v2.0.49
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Other
Additional Information
I was kicked out during a session and I tried to relogin:
claude
▐▛███▜▌ Claude Code v2.0.49
▝▜█████▛▘ Sonnet 4.5 · Claude Max
▘▘ ▝▝
/login
OAuth error: Invalid IP address: undefined
Press Enter to retry.
I tried ten times. Not working anymore. I am behind a proxy.
29 Comments
---
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
---
same , new version bypasses proxy
Same issue on v2.0.50 (WSL Ubuntu).
Fix: Downgrade to v2.0.47
/loginnow works in v2.0.47. Regression introduced in v2.0.48+.We’re also encountering this issue on our _Linux machine_, but it works fine on _Windows_. We suspect that the Linux requests are being blocked for response https://www.anthropic.com/news/disrupting-AI-espionage (as of 2025-11-14). We have locked our version to 2.0.47 in ~/.claude/settings.json.
running into the same issue
Claude Code v2.0.50
Please fix!
same is here. Claude Code v2.0.50 - kubuntu 24.04
thanks to @nichicom-yasutake downgrade to 2.0.47 fix the issue!
Same here
Same here
same here
same here
same here
up
+1
Same for me +1
Same for me!
Fix it 🤢
Tell the crew to fix this mess fast. Right now the only hustle I got is rolling back to v2.0.47, but I ain’t about to be locked down on v2.0.47 forever.....
same here, 2.0.53
2.0.53 still has the same problem
Installing the latest native version fixed it for me.
same here, 2.0.52
2.0.54 is not working. Had to revert to 2.0.47 which unfortunately means no access to the new Opus 4.5 model
v2.0.55 working
looks fixed in v2.0.55
from Release notes:
Version 2.0.55:
• Fixed proxy DNS resolution being forced on by default. Now opt-in via
CLAUDE_CODE_PROXY_RESOLVES_HOSTS=trueenvironment variablestill not working
<img width="407" height="120" alt="Image" src="https://github.com/user-attachments/assets/a1278524-1d63-4a92-a1c8-3762258acbc7" />
<img width="368" height="94" alt="Image" src="https://github.com/user-attachments/assets/f431eb8a-eb82-471c-9971-6c7d8e7a39bd" />
seems fixed in 2.0.55
try updating
v2.0.56 Still not working
Not working at all! Still same error! Proxy is the only way to access claude but auth bypasses it?
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.