| title | Configure a Firewall for FILESTREAM Access | ||
|---|---|---|---|
| description | Use FILESTREAM in a firewall-protected environment by opening the Windows file-sharing ports 139 and 445 to configure the firewall for FILESTREAM access. | ||
| author | MikeRayMSFT | ||
| ms.author | mikeray | ||
| ms.date | 03/01/2017 | ||
| ms.service | sql | ||
| ms.subservice | filestream | ||
| ms.topic | how-to | ||
| helpviewer_keywords |
|
[!INCLUDE SQL Server] To use FILESTREAM in a firewall-protected environment, both the client and server must be able to resolve DNS names to the server that contains the FILESTREAM files. FILESTREAM requires the Windows file-sharing ports 139 and 445 to be open.
-
In Control Panel, open Windows Firewall.
-
In the left pane, click Advanced settings. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
-
In the Windows Firewall with Advanced Security dialog box, in the left pane, click Inbound Rules, and then, in the right pane, click New Rule.
-
Follow the instructions in the New Inbound Rule wizard to add TCP port 139.
-
Repeat the previous step to add TCP port 445.
-
Close the Windows Firewall with Advanced Security dialog box.