MS SQL network ports

image_pdfimage_print

Quick cheat sheet for port numbers used by SQL Server services or services that SQL Server may depend on:

21TCPFTP (replication)
80TCPHTTP endpoints, Reporting Services, HTTP replication
135TCP & UDPRPC, WMI, MSDTC, SQL Agent file copy, and TSQL Debugger (RPC used for multiple purposes including SSIS and clustering.)
137UDPFile & Print Sharing (replication) and Cluster Admin
138UDPFile & Print Sharing (replication)
139TCPFileStream and NetBIOS Session Service (clustering)
443TCPHTTPS endpoints and Reporting Services
445TCP & UDPFileStream, SMB (clustering), and File & Print Sharing
500UDPIPSec
860TCPiSCSI
1024-5000TCPOriginal dynamic ports for named instances. (WinSock standard.)(See ports 49152-65535.) The DoD Database STIG requires static ports.
1433TCPSQL Server database engine
1434TCP & UDPSQL Server database engine, DAC, and SQL Server’s «Browse» button.
2382UDPAnalysis Serviceswhen using dynamic ports with named instances
2383TCPAnalysis Services
2393-2394TCPAnalysis Services version 7
2725TCPAnalysis Services
3260TCPiSCSI
3343UDPCluster network driver
3389TCPRemote Desktop Protocol (RDP)
3882TCPDTS/SSIS
4022TCPConventional port for the SQL Broker service
4500UDPIPSec
5000-5099UDPClustering
5022TCPAlwaysOn’s default port for primary and secondary replicas
7022TCPConventional port for Database Mirroring
8011-8031UDPClustering internode RPC
49152-65535TCPLatest dynamic ports for named instances. (WinSock standard.)(See ports 1024-5000.) The DoD Database STIG requires static ports.

Microsoft recommends non-default ports for maximum security.

Check ports in use: SELECT ServerProperty(«ProcessID»)
At a command prompt: «netstat -ano»

AlwaysOn Ports

  • Each instance w an Availability Group (AG) must have a database mirroring endpoint, and they endpoints bust be started (query sys.database_mirroring_endpoints and sys.tcp_endpoints).
  • Logins from a remote server must have CONNECT permission. Each instance must have access to ports on all partners.

Оставьте комментарий

Этот сайт использует Akismet для борьбы со спамом. Узнайте, как обрабатываются ваши данные комментариев.