Unable to authenticate via CLI

Hi,
I have configured OIDC as an authentication provider and it works well when working with Vault UI. However, with the CLI I get below error:
Error authenticating: listen tcp [::1]:8250: bind: cannot assign requested address
I checked but the port was free so not able to understand what is the issue.