Search code examples
gcloudapple-m1macos-monterey

GCloud auth login: Ports 8085 and 8184 possible blocked


I have installed and uninstalled and reinstalled GCloud on MACOS Monterey (Chipset M1) and I'm facing the next situation: When I run in Terminal gcloud auth login, it displays the next message:

WARNING: Failed to start a local webserver listening on any port between 8085 and 8184. Please check your firewall settings or locally running programs that may be blocking or using those ports.
WARNING: Defaulting to --no-browser mode.
You are authorizing gcloud CLI without access to a web browser. Please run the following command on a machine with a web browser and copy its output back here. Make sure the installed gcloud version is 372.0.0 or newer.

I have tried in many ways to install: The last one was this:

curl https://sdk.cloud.google.com | bash

exec -l $SHELL #restart shell

But I still facing that message.

Anybody couls help me with this?


Solution

  • This happens because my Internet provider has blocked these ports. There will be to make some fixes to the router.

    Patch solution for this:

    gcloud auth login --no-launch-browser
    

    Follow the instructions given on Terminal