Microsoft Teams Firewall Requirements
To meet microsoft teams firewall requirements, open outbound TCP and UDP ports to Microsoft networks. You must allow traffic on TCP ports 80 and 443 and UDP ports 3478 to 3481. Network admins often start by opening broad IP ranges so voice and video calls work right away. When firewall rules or user roles are too broad, anyone on the network can reach extra services. Tight rules keep your network safe while letting voice, video, and chat traffic flow without drops. How microsoft teams firewall
Microsoft Entra ID (Azure AD) + Data Residency Requirements: the complete guide
Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.
To meet microsoft teams firewall requirements, open outbound TCP and UDP ports to Microsoft networks. You must allow traffic on TCP ports 80 and 443 and UDP ports 3478 to 3481. Network admins often start by opening broad IP ranges so voice and video calls work right away. When firewall rules or user roles are too broad, anyone on the network can reach extra services. Tight rules keep your network safe while letting voice, video, and chat traffic flow without drops.
How microsoft teams firewall requirements work in practice
Teams splits network traffic into three main types: signaling, media, and regular web data. Signaling and chat messages travel over standard web ports using TCP 80 and 443. Real-time voice, video, and screen sharing need low delay, so they use UDP ports 3478 through 3481. If your firewall blocks UDP, the app falls back to TCP on the configured port. That fallback works in a pinch, but it often causes choppy audio and frozen video frames. For the best call quality, let media traffic go straight to the internet without deep packet checks. Packet inspection slows down live audio streams and breaks real-time media flow. You also need to allow access to the specific domains Microsoft uses for login and file sharing. Because cloud IP addresses change over time, admins check Microsoft published address lists to keep rules fresh. Updating your allow list on a regular schedule prevents sudden call drops when cloud servers shift.
What native network rules solve and what they miss
Setting up the right firewall ports solves call quality issues and stops random disconnects. It makes sure your chat client can reach cloud servers from inside a locked office network. Still, network ports and login roles only control which machines and users can establish a session. Once a user logs in and connects, the firewall does not inspect individual commands or data requests. This matters when engineers connect chat bots, internal scripts, or database tools to their team channels. A broad network rule or shared key lets a bot run any query against your backend systems. If someone posts a command in a chat room, the backend runs it with full role permissions. Native firewall rules cannot rewrite sensitive fields like emails or phone numbers in query results. They also cannot require a second person to approve a risky command before it runs.
How to keep network and app rules clean
Start by scoping your outbound firewall rules to the exact IP ranges needed for voice and media. Avoid opening all outbound UDP ports across your entire office network. Separate your regular user wifi from the network segments that host internal databases and servers. Next, review the bots and scripts that run inside your team channels. Give each bot a narrow role with read-only permissions whenever possible. Do not share admin keys inside chat rooms or store them in plain text files. Check your network logs and app logs each week to spot strange traffic spikes or failed logins. Clear rules at both the network layer and the command layer keep your data safe.
Microsoft Entra ID (Azure AD) + Data Residency Requirements: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Which ports are required for voice and video calls?
Voice, video, and screen sharing require outbound UDP ports 3478, 3479, 3480, and 3481. You also need outbound TCP ports 80 and 443 open for signaling and general app traffic.
What happens if my firewall blocks UDP traffic?
If UDP ports are blocked, the app switches media traffic over to TCP the configured port. Calls will still connect, but users may notice lag, choppy audio, or lower video quality.
Should I run deep packet inspection on media traffic?
No, you should bypass deep packet inspection and TLS decryption for trusted media IP ranges. Inspecting real-time voice and video packets adds delay and degrades call quality for your team.
Related guides
In this post