Share via


Sharepoint: Firewall settings for SP Farm

Some times in SharePoint when we access web sites, search and configure alerts we see network related errors even though we configured everything is good. There could be so many reasons for that. One could be Firewall. In this article I am providing the steps how and where to check for the firewall issue.

On each SharePoint 2013 Server, we will need to set a firewall rule to allow SharePoint intra-farm traffic and HTTP/HTTPS traffic. Alternatively, you can disable the Windows Firewall if you choose and if you have another firewall solution.

You can set the Windows Firewall rules by navigating to the Control Panel, then click System and Security, then click Windows Firewall, and finally click Advanced settings. In the Inbound Rules area, ensure that the server allows connections on port 80 (HTTP) and port 443 (HTTPS). Add the ports listed in the table below for the SharePoint 2013 inter-farm communication by following these steps:

  1. In the Windows Firewall with Advanced Security window, click Inbound Rules.

  2. In the Actions panel, click New ruleā€¦

  3. In the New Inbound Rule Wizard window, select Ports as the Rule Type and click Next.

  4. Select the appropriate choice between TCP and UDP, and enter the desired port(s) for the Specific local ports. Click Next.

  5. Click Next. On the Profile screen, click Next.

  6. On the Name screen, enter the desired name and click Finish.

    Rule Name

    TCP or UDP

    Ports

    SharePoint Web Traffic

    TCP

    80,443

    SharePoint Search Index

    TCP

    16500-16519

    SharePoint Farm Communication

    TCP

    32843,32844,32845

    SharePoint Profile Synchronizing (TCP)

    TCP

    5725,389,88,53

    SharePoint Profile Synchronizing (UDP)

    UDP

    389,88,53,464

    SharePoint User Code Service

    TCP

    32846

    SharePoint SMTP Service

    TCP

    25

If you find a different solution, please report it as a comment to this post. This will be useful to SharePoint Community. Be sure to double-verify it: undo your solution and verify that the problem comes back, then redo it and verify that the problem goes away.

See Also

  1. SharePoint Resources on the TechNet Wiki
  2. SharePoint 2013 Portal
  3. SharePoint 2013 - Service Applications
  4. SharePoint 2013 - Resources for Developers
  5. SharePoint 2013 - Resources for IT Pros