# Microsoft Azure doesn’t like your IPv6 address

When setting up a new machine after a company acquisition, I ran into several strange errors connecting with [Azure DevOps](https://learn.microsoft.com/en-us/azure/devops/user-guide/what-is-azure-devops?view=azure-devops). If any of the following sound familiar, keep reading:

* [Azure DevOps' Personal Access Tokens page](https://venminder.visualstudio.com/_usersSettings/tokens) shows error: `TF400893: Unable to contact the server. Please check your network connection and try again.`
    
* [Visual Studio’s Connect to a Project](https://gets-3-rsd.venminder.com/diagnostics/index.html) dialog shows no repositories.
    
* [Visual Studio’s authentication](https://git-scm.com/docs/git-clone) fails with error: `We could not refresh the credentials for the account "..." The SSL connection could not be established, see inner exception.`
    
* Visual Studio pops up the [“Let’s get you signed in”](https://gets-3-rsd.venminder.com/diagnostics/index.html) dialog in a infinite loop.
    
* [Visual Studio’s account icon](https://gets-3-rsd.venminder.com/diagnostics/index.html) does not show profile image.
    
* [Cloning repository from the command line](https://git-scm.com/docs/git-clone) shows error:
    
    ```plaintext
    fatal: An error occured while sending the request.
    fatal: The underlying connection was closed: An unexpected error occured on a send.
    fatal: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
    fatal: An existing connection was forcibly closed by the remote host.
    fatal: Authentication failed for '...'
    ```
    

## Solution

Long story short, this can be resolved by turning off the IPv6 adapter on your machine. If you are on Windows, follow these steps:

1. Go to the `Control Panel` → `Network and Internet`.
    
2. Select `Network and Sharing Center` → `Change adapter settings`.
    
3. Right click on your active adapter → `Properties`.
    
4. Uncheck `Internet Protocol Version 6 (TCP/IPv6)`.
    
5. Click `Ok`.
    

If you are using another operating system, use [this guide to disable IPv6](https://support.strongvpn.com/hc/en-us/articles/360026848373-How-To-Disable-IPv6-on-Various-Operating-Systems).

If you prefer to keep using the IPv6, you can alternatively disable IPv6 specifically for [`dev.azure.com`](http://dev.azure.com) URL by editing the hosts file.

1. In the `File Explorer`, navigate to `C:\\Windows\\System32\\drivers\\etc\\hosts`.
    
2. Add a new line at the bottom of the file: `13.107.42.20 dev.azure.com`
    

## IPv4 and IPv6

IPv4 (Internet Protocol version 4) is the foundation of most internet traffic today. It uses 32-bit addresses, which allows for about 4.3 billion unique IP addresses — once thought to be more than enough. But as the internet grew, we quickly ran out of available IPv4 addresses. To solve this, IPv6 was developed. IPv6 uses 128-bit addresses, offering an enormous address space (3.4 × 10^38 possible addresses) and includes modern networking features like simplified routing and improved security.

Despite being introduced in the late 1990s, IPv6 adoption has been slow — especially in enterprise environments. Many internal systems, corporate firewalls, VPNs, and even cloud-based tools are still built with IPv4 as the default. Microsoft services like Azure DevOps and Visual Studio, for example, still exhibit spotty or incomplete support for IPv6. In some cases, applications will attempt to use IPv6 first, but fail to connect or time out silently. Without proper fallback to IPv4, this results in broken authentication, clone failures, or unresponsive UIs.

## Further reading

* [Troubleshooting Azure DevOps by Anchorpoint](https://docs.anchorpoint.app/docs/version-control/troubleshooting/azure-devops/).
    
* [How To Disable IPv6 on Various Operating Systems?](https://support.strongvpn.com/hc/en-us/articles/360026848373-How-To-Disable-IPv6-on-Various-Operating-Systems)
    
* [Stack Overflow answers for fatal connection error with Azure DevOps](https://stackoverflow.com/questions/67230241/fatal-unable-to-access-https-dev-azure-com-xxx-openssl-ssl-connect-connec/68259166#68259166).
    
* [Why is IPv6 not widely used in today’s Internet?](https://www.quora.com/Why-is-IPv6-not-widely-used-in-todays-Internet)
