Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback

Last updated on 4 November 2026

Admin
gRPC API

Overview

When you log in to a vault, the M-Files Desktop Client may try to automatically upgrade your vault connection. It aims to use the gRPC protocol instead the old HTTP or TCP/IP ones.

To the end user or the company's administrators, it may appear as if the vault connection changed without any input or action.

The M-Files Client tries to upgrade the connection automatically if the current connection fails when you try to log in to the vault.

The upgrade attempt follows this order, and if one attempt succeeds, M-Files Client updates the vault connection details with the new port and protocol:

  1. Try the gRPC protocol on the current port (e.g., 2266 for connections over TCP/IP).
  2. Try the gRPC protocol on port 443.
  3. Try the gRPC protocol on port 7766.
  4. Try the gRPC protocol on port 2266.

See more details about preparing your server for gRPC protocol connections at Switching from RPC to gRPC in an M-Files System.pdf. 

M-Files client versions older than 25.6 (June 2025) may try a more limited set of connection updates (2266 -> 7766).

Notes

  • The "Test Connection" button in the vault connection settings dialog does not perform any attempts to upgrade and migrate the connection.
  • When the client does that upgrade attempt, it will test the connectivity to the vault with the new settings and if the test is successful, it will save the updated connection. If the test fails, the connection settings will not be upgraded. 
    • If the test succeeds but you later close the port or the network conditions otherwise change to break the traffic, the vault connection may stop working and you may need to either fix the network, or push changes to all clients to revert the old connection settings (note in this case that the client will keep trying to upgrade the connection settings).
  • The general recommendation is to prefer the gRPC protocol over the older protocols like HTTP or TCP/IP anyway, see more here Setting Up M-Files to Use gRPC.pdf. 
  • If you need a period to test and implement the gRPC connectivity, you may want to restrict the gRPC access to a very limited set of computers during testing so normal users do not get updated (e.g., incoming firewall on the reverse proxy should allow traffic on 7766 only from a limited set of test machines during the testing phase, and this restriction be removed later when it is ready, so all clients update).
  • The protocol update attempt applies to API integrations as well:
    • ClientApplication mode uses the same vault connection as the graphical user interface and so it will also store the protocol update upon success.
    • ServerApplication mode does not have a persistent storage so if the protocol chosen in its code does not work anymore, it will be slower on each connection attempt as it cycles through the options until one works - depending on which one it is in the order, it may take 30 seconds or a few minutes.
      • You should update the code of such applications to avoid this delay and error logs.

Still need help?

On this page