How to verify that port 1433 is running on an Sql server or not?

How to check if port 1433 is open for Sql Server or not? I installed in the linked and inferred rules, checked in the SQL configuration manager, but not sure if it works.

+4
source share
4 answers

Try the following:

USE master
GO
xp_readerrorlog 0, 1, N'Server is listening on' 
GO

Identify the SQL Server TCP IP Port Used

+6
source

If the server uses TCP / IP, an easy way is to simply connect to SQL Server and see if it connects. By default, this port is 1433, so this should work:

telnet servername 1433

In most cases this will be appropriate.

( ), , . SQL Server, , . , , , netstat -abn, , , . , Windows SQL Server , .

SQL Server , , , . , IPC $:

 net use \\servername\IPC$

SQL Server 2000, , , .

+4

Netstat

netstat -abn

.

rackspace .

+2

If TELNET is installed, you can use it TELNET 1433to verify connectivity to the port. Otherwise, the PowerShell command below may do the job.

$server="yourserver"; $port=1433; echo ((new-object Net.Sockets.TcpClient).Connect($server,$port)) "$server is listening on TCP port $port";
+2
source

Source: https://habr.com/ru/post/1653096/


All Articles