{"version":"2.1.268","anchor":"oauth-local-callback-port-selection-now-takes-a-configurable","canonical_anchor":"oauth-local-callback-port-selection-now-takes-a-configurable","heading":"OAuth local-callback port selection now takes a configurable range\/fallback and adds a last-resort ephemeral-port bind","tier":"notice","area":"Auth","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.268\/e\/oauth-local-callback-port-selection-now-takes-a-configurable","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.268","markdown":"### OAuth local-callback port selection now takes a configurable range\/fallback and adds a last-resort ephemeral-port bind\n\nOAuth login's local callback port picking is now configurable and adds a last-resort random free port\n\n**What**\n\nWhen Claude Code logs in via OAuth, it opens a temporary local web server to receive the login callback and needs a free network port for it. The function that picks this port now takes a configurable range and fallback port instead of hardcoded values.\n\n- If no port in the configured range is free, and the fallback port is also taken, Claude Code now tries one more thing: asking the operating system to hand it any free port, before giving up.\n\n**Why**\n\nThis makes OAuth login more resilient on machines where the usual port range or fallback port is already in use, reducing login failures due to port conflicts.\n\n- Area: Auth\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5"}