[BUG] /login leads to invalid IP Address

Resolved 💬 29 comments Opened Nov 21, 2025 by zbindenren Closed Nov 27, 2025

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.

View original on GitHub ↗

29 Comments

github-actions[bot] · 7 months ago

---

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/11464
  2. https://github.com/anthropics/claude-code/issues/11078
  3. https://github.com/anthropics/claude-code/issues/11469

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

---

adaflexer · 7 months ago

same , new version bypasses proxy

nichicom-yasutake · 7 months ago

Same issue on v2.0.50 (WSL Ubuntu).

Fix: Downgrade to v2.0.47

npm install -g @anthropic-ai/claude-code@2.0.47
rm -rf ~/.config/claude-code
claude code auth login

/login now works in v2.0.47. Regression introduced in v2.0.48+.

isomoes · 7 months ago

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.

{
  "env": { "DISABLE_AUTOUPDATER": "1" },
}
narendrakumar1987in · 7 months ago

running into the same issue

Claude Code v2.0.50

  ⎿  API Error: 401 {"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired. Please obtain a new token or refresh your existing
     token."},<truncate>
> /login

 OAuth error: Invalid IP address: undefined


 Press Enter to retry.

Please fix!

nashgc · 7 months ago

same is here. Claude Code v2.0.50 - kubuntu 24.04

thanks to @nichicom-yasutake downgrade to 2.0.47 fix the issue!

df-cgdm · 7 months ago

Same here

jpimmt · 7 months ago

Same here

kallmetony · 7 months ago

same here

faire2 · 7 months ago

same here

marcotaubmann · 7 months ago

same here

MiXaiLL76 · 7 months ago

up

pmanu93 · 7 months ago

+1

microwan · 7 months ago

Same for me +1

dumpker · 7 months ago

Same for me!

ramphy · 7 months ago

Fix it 🤢

fyuway · 7 months ago

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.....

ayaka209 · 7 months ago

same here, 2.0.53

faire2 · 7 months ago

2.0.53 still has the same problem

pmanu93 · 7 months ago

Installing the latest native version fixed it for me.

t29mato · 7 months ago

same here, 2.0.52

slim-benhadj · 7 months ago

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

phcamargo23 · 7 months ago

v2.0.55 working

narendrakumar1987in · 7 months ago

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=true environment variable

MiXaiLL76 · 7 months ago

still 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" />

DorWeinstock · 7 months ago

seems fixed in 2.0.55
try updating

keiutsugiH · 7 months ago

v2.0.56 Still not working

MerelyPerfect · 7 months ago

Not working at all! Still same error! Proxy is the only way to access claude but auth bypasses it?

github-actions[bot] · 7 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.