Check SQL Server Port Availability
Check SQL Server Port Availability
Ensure each SQL Server Port is open and SQL Server can communicate via TCP/IP on Windows Server Firewall
after a new SQL Server Install.
Ports:
Protocol Port Description
TCP ports 80 and 443 are most typically used for report server access. However, they also support URL requests to SQL Server and
80,
TCP Analysis Services. TCP 80 is the standard port for HTTP connections that use a URL. TCP 443 is used for HTTPS connections that
443
use secure sockets layer (SSL).
SQL Transact Debugger/RPC - if you plan to remote debug stored procedures, etc.
TCP 135 TCP port 135 has several uses. The Transact-SQL debugger uses the port. TCP 135 is also used to start, stop, and control SQL Server
Integration Services, although it is required only if you connect to a remote instance of the service from SSMS.
SQL Server Default Instance - Database engine : both application and management studio connectivity
TCP port 1433 is the default port for SQL Server. This port is also the official Internet Assigned Number Authority (IANA) socket
TCP 1433 number for SQL Server. Client systems use TCP 1433 to connect to the database engine; SQL Server Management Studio (SSMS)
uses the port to manage SQL Server instances across the network. You can reconfigure SQL Server to listen on a different port, but
SQL Server Admin Connection - “Administration Connection” or SQL Browser : management studio connectivity
TCP 1434 TCP port 1434 is the default port for the Dedicated Admin Connection. You can start the Dedicated Admin Connection through
sqlcmd or by typing ADMIN: followed by the server name in the SSMS Connect to Database Engine dialog box.
named instances. Analysis Services then redirects the request to the appropriate port for the named instance.
SQL Service Broker (Unofficial TCP Ports) - only if you use SQL Server Service Broker
TCP 4022 Microsoft uses TCP port 4022 for SQL Server Service Broker examples in SQL Server Books Online. Likewise, BOL Database
UDP 1434 UDP port 1434 is used for SQL Server named instances. The SQL Server Browser service listens on this port for incoming
connections to a named instance. The service then responds to the client with the TCP port number for the requested named instance.
SQL Server default This is the most common port allowed through the firewall.
instance running TCP port 1433 It applies to routine connections to the default installation of
over TCP the Database Engine, or a named instance that is the only
instance running on the computer. (Named instances have
instances when
The port number configured by the administrator. See the discussion below in the section Dynamic Ports.
they are configured
Dedicated Admin TCP port 1434 for the default instance. Other ports are used for Administrator Connection (DAC) are not enabled. To enable
Connection named instances. Check the error log for the port number. remote DAC, use the Surface Area Configuration facet. For
SQL Server
Can be specified when an HTTP endpoint is created. The default is
instance running
TCP port 80 for CLEAR_PORT traffic and 443 for SSL_PORT Used for an HTTP connection through a URL.
over an HTTP
traffic.
endpoint.
endpoint.
TCP port 4022. To verify the port used, execute the following
query: There is no default port for SQL Server Service Broker, but
Service Broker SELECT name, protocol_desc, port, state_desc this is the conventional configuration used in Books Online
Administrator chosen port. To determine the port, execute the There is no default port for database mirroring however
following query: Books Online examples use TCP port 7022. It is very
Database Mirroring SELECT name, protocol_desc, port, state_desc important to avoid interrupting an in-use mirroring endpoint,
WHERE type_desc = 'DATABASE_MIRRORING' firewall configuration must avoid breaking quorum. For
more information, see Specify a Server Network Address
(Database Mirroring).
Database Engine ports (TCP port 1433 for the default instance,
For sync over HTTP, replication uses the IIS endpoint (ports
etc.)
for which are configurable but is port 80 by default), but the
Web synchronization and FTP/UNC access for replication
IIS process connects to the backend SQL Server through the
snapshot require additional ports to be opened on the firewall. To
Replication standard ports (1433 for the default instance.
transfer initial data and schema from one location to another,
During Web synchronization using FTP, the FTP transfer is
replication can use FTP (TCP port 21), or sync over HTTP (TCP
between IIS and the SQL Server publisher, not between
port 80) or File Sharing. File sharing uses UDP port 137 and 138,
subscriber and IIS.
and TCP port 139 if it using NetBIOS. File Sharing uses TCP port
445.
and open TCP port 135. For more information, see Configure
ping (測試網路連線狀態)
ping <targetserverFQDN>
telnet (遠端登入)
telnet <targetserverFQDN> <MirrorPort>
Note: To end telnet session you must reach the telnet prompt and type quit:
1. Open the telnet prompt by holding down the 'Ctrl' key and push the ']' key. (prompt: Microsoft Telnet>)
2. Type quit.
3. Push the 'Enter' key.