How to whitelist Teams in Windows Firewall?

Anonymous
2022-10-27T09:17:01+00:00

I have set Windows Firewall to block any inbound and outbound connections if it does not match a rule that I have specified. I have successfully allowed all applications that I want to have internet access, except Teams.

I added rules for the following executable files to Windows Firewall. Firewall rules: Inbound & outbound, allow any condition.

C:\Users\User\AppData\Local\Microsoft\Teams\Update.exe
C:\Users\User\AppData\Local\Microsoft\Teams\previous\Teams.exe
C:\Users\User\AppData\Local\Microsoft\Teams\previous\Squirrel.exe
C:\Users\User\AppData\Local\Microsoft\Teams\current\Teams.exe
C:\Users\User\AppData\Local\Microsoft\Teams\current\Squirrel.exe

At first it seems like Teams can connect because I do not get the "You're offline." banner, but after a few seconds it says "We ran into a problem. Reconnecting...".

If I disable Firewall it works.

Please see attached screenshots of my Firewall rules. Using the following rules, Firefox, Telegram, qbittorrent can use the internet with no problem--but not Teams.

Thanks for any help.

Microsoft Teams | Microsoft Teams Free | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

8 answers

Sort by: Most helpful
  1. Anonymous
    2022-10-27T09:58:05+00:00

    Hello, TomatoSanta! My name is John, and I am an Independent Advisor as well as a long-time Microsoft user. I am glad to help regarding your Teams issue.

    I also hope you are doing great aside from your concern today.

    You may createa firewall rule that blocks everything, but deactivate it:

    New-NetFirewallRule -DisplayName "Teams.exe" -Program "%LocalAppData%\Microsoft\Teams\current\Teams.exe" -Profile Domain,Private,Public -Description "Teams.exe" -Group "Teams" -Direction Inbound -Protocol TCP -Action Block -Enabled false -EdgeTraversalPolicy Block

    New-NetFirewallRule -DisplayName "Teams.exe" -Program "%LocalAppData%\Microsoft\Teams\current\Teams.exe" -Profile Domain,Private,Public -Description "Teams.exe" -Group "Teams" -Direction Inbound -Protocol UDP -Action Block -Enabled false -EdgeTraversalPolicy Block

    Hope this helps.

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2022-10-27T10:27:16+00:00

    As I said, I have already added rules for Teams.exe and more...

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-10-28T09:08:59+00:00

    Hello TomatoSanta! My name is Abdullah, and I am an Independent Advisor as well as a long-time Microsoft user.

    I'm sorry that you are experiencing this issue, and I will try my best to assist you with this so that you find a satisfactory solution.

    Please let me know other than creating rules, what else have you done to troubleshoot this issue? Also, I am sharing link below, please check it, it may help you:

    https://learn.microsoft.com/en-us/answers/quest...

    Please let me know if the above article helped you. Thank you.

    Best,

    Abdullah

    0 comments No comments
  4. Anonymous
    2022-10-28T12:56:20+00:00

    I already tried the previously suggested trick of creating a Firewall rule and disabling it. It did not fix the problem.

    Please see attached screenshots of my Firewall rules. Firefox, Telegram, qbittorrent can use the internet with no problem, but not Teams.

    0 comments No comments
  5. Anonymous
    2022-10-28T13:01:00+00:00

    Hi TomatoSanta,

    Thank you for the confirmation. Please consider removing the rules and follow the article below to create new rules for Teams:

    https://learn.microsoft.com/en-us/microsoftteam...

    Thank you.

    0 comments No comments