26 August 2026 Updated: 25 October 2026 8 min read

VPN Split Tunneling for Microsoft Teams: Routing Media Traffic Around the Tunnel

Teams calls over a VPN suffer from latency, jitter, and the detour through the VPN gateway. This article explains which Microsoft networks and ports handle media traffic, why IP-based split tunneling is superior to app exclusions, and how to implement it in consumer VPNs, WireGuard, OpenVPN, and enterprise clients.

A Teams call over a VPN connection often sounds worse than one without: audio cuts out, video stutters, and screen sharing takes longer to load. The cause is usually the detour that real-time traffic takes through the VPN tunnel, not Teams itself. Microsoft has therefore recommended for years that Teams media traffic be routed directly to the internet around the VPN through split tunneling. This approach works with virtually every VPN product, from consumer clients to enterprise gateways; only the configuration details differ.

Why real-time traffic suffers in the tunnel

Teams audio and video use SRTP, a UDP-based protocol that depends on low latency and minimal jitter. Microsoft specifies targets of under 100 ms round-trip time to the nearest Microsoft network entry point and under 30 ms of jitter. A VPN tunnel worsens both values in several ways.

First, the tunnel lengthens the path: Instead of going directly to the geographically nearest Microsoft entry point, traffic first goes to the VPN gateway, which may be located in the provider’s or company’s data center, and only then to Microsoft. Second, the additional encryption layer consumes processing time and increases overhead per packet; the media stream is already encrypted with SRTP, while VPN encryption adds a second layer. Third, the VPN gateway is a shared bottleneck: During peak periods, all users share its bandwidth and packet buffers, creating precisely the jitter to which real-time traffic is most sensitive. Fourth, some VPN configurations block UDP entirely or force TCP; Teams then falls back to TCP 443, further reducing quality because TCP retransmissions are unsuitable for real-time media.

For the remaining Teams traffic (sign-in, chat, file access), this hardly matters because it is not sensitive to real-time performance. It is therefore sufficient to exclude media traffic specifically.

The relevant networks and ports

Microsoft publishes all Microsoft 365 endpoints in machine-readable form and divides them into the Optimize, Allow, and Default categories. The Optimize category is relevant for split tunneling: It includes the few latency-critical endpoints with fixed IP networks that together account for most of the volume. For Teams media, this is endpoint ID 11 in the official list. ID 12 includes the same IPv4 networks and additional IPv6 networks for TCP 443 and 80 as well as UDP 443, but is in the Allow category. Microsoft removed the previously listed network 13.107.64.0/18 from both entries in 2024 (version 2024053000 for ID 12, 2024073100 for ID 11):

NetworkProtocol and portsPurpose
52.112.0.0/14UDP 3478 through 3481 (ID 11), TCP 443 (ID 12)Teams media and transport relays
52.122.0.0/15UDP 3478 through 3481 (ID 11), TCP 443 (ID 12)Teams media and transport relays
2603:1063::/38UDP 3478 through 3481 (ID 11), TCP 443 (ID 12)Same services over IPv6

The four UDP ports represent the media classes audio (3478), video (3479 and 3480), and screen sharing (3481); TCP 443 is the fallback path. If you use IPv6, you should also exclude the IPv6 network; otherwise, some connections will still go through the tunnel.

These networks are intentionally stable: Microsoft announces changes to Optimize endpoints through the Endpoint Web Service and keeps the list short specifically so companies can incorporate it into routing and firewall rules. Still, periodically comparing it with the official list should be part of operational routine.

App-based or IP-based: two approaches with unequal strengths

Many VPN clients offer two types of split tunneling: exclusions by application or exclusions by destination IP.

App exclusion sounds obvious, but it has two weaknesses with Teams. The new Teams is a WebView2 application: The main process is named ms-teams.exe, but some traffic runs through msedgewebview2.exe. Excluding only the main process does not capture all traffic; excluding WebView2 also routes traffic from other WebView2 applications (such as the new Outlook) around the tunnel. And for Teams in the browser, app exclusion does not help at all unless you exclude the entire browser, which causes all web traffic to bypass the VPN.

By contrast, IP-based exclusion operates at the network level and is therefore independent of whether traffic originates from the Teams app, WebView2, or a browser tab. It excludes exactly what is latency-critical while keeping sign-in, chat, and the remaining web traffic in the tunnel. For Teams, the IP-based approach is therefore the better choice; app exclusion is suitable as an addition if all Teams traffic really needs to bypass the VPN.

Implementation in common VPN products

The principle is the same everywhere: The two IPv4 networks (and the IPv6 network if needed) are excluded from the tunnel so that operating system routes for these destinations point to the physical interface.

Consumer VPNs (Proton VPN, NordVPN, Surfshark, and similar): Windows and Android clients usually offer a menu item such as “Split Tunneling” with an exclusion list for IP addresses or subnets. Enter the networks in CIDR notation and reconnect the VPN so the routes take effect. The feature is unavailable on macOS and iOS from most providers because the system APIs there do not allow application-controlled split tunneling in this form.

WireGuard: WireGuard has no exclusion list, only the AllowedIPs setting, which determines what goes into the tunnel. Exceptions are created by replacing 0.0.0.0/0 with a list of all networks that do not contain the excluded range. No one calculates this complementary list by hand; online calculators such as the WireGuard AllowedIPs Calculator use 0.0.0.0/0 as the basis, the Microsoft networks as “Disallowed IPs,” and provide the completed line for the configuration file.

OpenVPN: With redirect-gateway enabled, more-specific routes take precedence. Two additional lines in the client configuration route the Microsoft networks around the tunnel:

route 52.112.0.0 255.252.0.0 net_gateway
route 52.122.0.0 255.254.0.0 net_gateway

net_gateway represents the default gateway of the local network, not the VPN gateway.

Enterprise clients (Cisco Secure Client/AnyConnect, Palo Alto GlobalProtect, Fortinet FortiClient): Here, the company configures the exclusions centrally—at Cisco as a “Split Exclude” list in the group policy and at GlobalProtect as an “Exclude Access Route.” Microsoft explicitly documents this approach as the recommended model for Microsoft 365 traffic and provides the Optimize list through the Endpoint Web Service, allowing exclusions to be kept current automatically. Employees behind a corporate VPN therefore cannot set the exception themselves and must request it from the network team; the Microsoft document on the subject is an appropriate basis for making the case.

Built-in Windows tools: For a VPN connection configured with built-in Windows tools in split mode (Set-VpnConnection -SplitTunneling $true), only networks entered through Add-VpnConnectionRoute are routed through the tunnel. As long as the Microsoft networks do not appear there, they automatically run directly; an explicit exclusion is unnecessary.

Security trade-off: what bypasses the tunnel

Split tunneling deliberately relaxes the principle of routing all traffic through the tunnel. Before implementation, you should clarify three points.

Your own public IP address becomes visible to Microsoft, because that is precisely the intention: The media stream should take the shortest path. If you primarily use a VPN to hide your location, you give up that protection for Teams calls. Content remains unaffected because SRTP encrypts the media stream end-to-end between the client and Microsoft infrastructure.

In a corporate environment, the central security gateway loses visibility into excluded traffic: TLS inspection, IDS signatures, and volume analysis no longer apply to these networks. Since the exception is limited to a few fixed Microsoft-assigned networks with defined ports, Microsoft considers this residual risk low; the Optimize endpoints are curated specifically for this purpose. A blanket exclusion for entire applications or even the browser, on the other hand, has a significantly larger attack surface and should be avoided in corporate environments.

Finally, the kill switch: Some VPN clients apply split-tunneling exclusions only after reconnecting, or behave differently when the kill switch is enabled. After every change to the exclusion list, you should therefore reconnect and perform a verification test.

Verification: is media traffic really going directly?

You can verify whether the exception works at two levels. At the routing level, PowerShell shows which interface Windows selects for a destination in the Microsoft networks:

Find-NetRoute -RemoteIPAddress 52.112.1.1 |
  Select-Object InterfaceAlias, NextHop

If the physical interface (Ethernet or Wi-Fi) appears here instead of the VPN adapter, the route is correct. At the application level, Teams itself provides confirmation: During a call, call health (under “More actions” in the call window) displays the negotiated connection type, round-trip time, and packet loss rate. A round-trip time that drops significantly after the change and UDP rather than TCP as the connection type are the two signs of a working exception.

If traffic remains in the tunnel despite the correct route, check the order of network adapters and client-specific behavior: Some VPN clients reapply their routes with a lower metric after every connection is established, and an outdated exclusion list may only become apparent when Microsoft adds a network. Comparing the configuration with the official endpoint list should therefore follow the same schedule as other recurring network checks.

Change history

  • October 25, 2026: Corrected: Microsoft removed the network 13.107.64.0/18 from the endpoint list in 2024; it has been removed from the table and the OpenVPN example. Also corrected: Only ID 11 belongs to the Optimize category; ID 12 belongs to the Allow category.

Sources

  1. Microsoft: Office 365 URLs and IP address ranges

    official endpoint list; Teams media networks are listed under ID 11 in the Optimize category, while ID 12 contains the same networks in the Allow category.

    https://learn.microsoft.com/en-us/microsoft-365/enterprise/urls-and-ip-address-ranges
  2. Microsoft: Implementing VPN split tunneling for Microsoft 365

    Microsoft’s implementation guide for enterprise VPNs, including the rationale for the risk assessment and an example with the Teams media networks 52.112.0.0/14, 52.122.0.0/15, and 2603:1063::/38.

    https://learn.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-vpn-implement-split-tunnel
  3. Microsoft: Microsoft 365 network connectivity principles

    the principles behind local internet breakout, including latency targets for real-time media.

    https://learn.microsoft.com/en-us/microsoft-365/enterprise/microsoft-365-network-connectivity-principles
  4. Proton VPN: How to use split tunneling

    an example of a consumer client with IP- and app-based split tunneling on Windows and Android.

    https://protonvpn.com/support/protonvpn-split-tunneling/
  5. WireGuard AllowedIPs Calculator

    calculator for the complementary list when exceptions must be represented through AllowedIPs.

    https://www.procustodibus.com/blog/2021/03/wireguard-allowedips-calculator/
  6. Microsoft 365 IP and URL web service: Worldwide changes

    change log for the endpoint list, including the removal of 13.107.64.0/18 from IDs 12 (version 2024053000) and 11 (version 2024073100).

    https://endpoints.office.com/changes/worldwide/2024010100?clientrequestid=b10c5ed1-bad1-445f-b386-b919946339a7

Comments

Comments are loaded from GitHub / Giscus.