check if sql port is open

25112
25112 used Ask the Experts™
on
is there any other option other than telnet to see if sql server port is open to another server?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
netstat.
run>cmd> netstat to see all open ports.
1433 = sql
or maybe you want this:
MS FIX IT
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
nertstat tells if the port is open, right?

i want to know if server a can access port 1433 on the sql server (let's call this serverb).. can you do that through netstat?
leakim971Multitechnician
Top Expert 2014
Commented:
netstat need to be run on the server itslef
go for sqlcmd
or what is your problem with telnet? you don't want to install it (win7/2k8?)
pkgmgr /iu:"TelnetClient"

Open in new window

leakim971Multitechnician
Top Expert 2014
Commented:

Author

Commented:
telnet can be installed by the windows admin only and he is not available for a few days..

1)you gave a link for: Microsoft® SQL Server® 2008 Management Studio Express
how will that help to see if server a can access serverb's port 1433?

2)is pkgmgr /iu:"TelnetClient" a sqlcmd?
leakim971Multitechnician
Top Expert 2014
Commented:
>how will that help to see if server a can access serverb's port 1433?
Install it on workstation/serverv and try to connect to server a.

>pkgmgr /iu:"TelnetClient" a sqlcmd?
this command install the telnet client on windows 7 & 2k8
but forget it if you don't have admin rights
leakim971Multitechnician
Top Expert 2014

Commented:
but you may try/run telnet on an other machine...

Author

Commented:
C:\Users\jimwe>pkgmgr /iu:"TelnetClient"

C:\Users\jimwe>

did not give any errors.. but nothing else either..

but i tried it and not it works..thanks..

Author

Commented:
>>netstat need to be run on the server itslef

so how would you check from netstat

C:\Users\TPBAdmin>netstat

Active Connections

  Proto  Local Address          Foreign Address        State
leakim971Multitechnician
Top Expert 2014

Commented:
Look for :1433 (local address)
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Users\leakim>netstat -na

Connexions actives

 Proto  Local Address          Foreign Address        State
TCP    127.0.0.1:1433         0.0.0.0:0              LISTENING

C:\Users\leakim>

Open in new window

netstat -an|findstr 1433
or
telnet 192.168.1.2 1433

Author

Commented:
leakim971/tangchunfeng,

netstat will work only if the local machine is having SSMS installed and opened to a database, right?

with telnet, we will force it to listen and tell us if it can listen.


Author

Commented:

also can you help me to read
TCP    127.0.0.1:1433         0.0.0.0:0              LISTENING

is 1433 running on 127.0.0.1, and no one (0.0.0.0) is listening.
Racim BOUDJAKDJIDatabase Architect - Dba - Data Scientist
Commented:
Try SQLPing. It is a free utility that allows you to quickly evaluate your SQL Server instances surface of exposure:

http://www.sqlsecurity.com/Tools/FreeTools/tabid/65/Default.aspx

Hope this helps...

Author

Commented:
nice option..

thanks all.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial