Groups | Blog | Home
all groups > sql server connect > january 2004 >

sql server connect : What TCP ports are used by SQL Server Named Pipes?


John Fredrickson
1/4/2004 1:07:44 AM
Guys,

I'm having trouble communicating with one of my SQL Servers within my
Windows domain. The symptoms are that I can read a DTS package but when I
try to execute it or save it, I get an error saying that DBNETLIB cannot
find the server.

I believe the problem is that my firewall allows the TCP protocol to use
port 1433, but the Named Pipes protocol's TCP ports in the firewall are
blocked.

My question is, what port numbers does Named Pipes use inside the TCP stack?

Thanks in advance for your help.

John


Ray Higdon
1/4/2004 10:24:06 AM
You should be able to open the properties to your named instance in EM, go
to network config, click on TCP/IP and click properties to see the port it
is using, I just created one and it is listening on 1305.

HTH

--
Ray Higdon MCSE, MCDBA, CCNA
--
[quoted text, click to view]

John Bell
1/4/2004 11:19:53 AM
Hi

If you have problems attaching to a pipe it is more likely that the name is
not being resolved or a NT security issue rather than TCP. If you are using
a WAN then TCP is the best protocol to use.

John

[quoted text, click to view]

Linchi Shea
1/5/2004 11:20:36 AM
If you are using named pipes, most likely you'll see port
TCP 139 on the server side. Firewall folks don't like
openning TCP 139. It's not exclusively used by SQL named
pipes. It's a port for NetBIOS over TCP or NetBIOS session
service.

If NetBIOS over TCP is disabled on the server side, the
port on the server side would be TCP 445 used by Server
Message Blocks. You may have difficult getting the
firewall folks openning TCP 445 as well.

Linchi

[quoted text, click to view]
kevmc NO[at]SPAM online.microsoft.com
1/5/2004 11:17:44 PM
Verify that you can connect to the server via tcp and/or named pipes.

OSQL -Stcp:ServerNameHere -E (for TCP)

OSQL -Snp:ServerNameHere -E (for Named Pipes)

Named Pipes uses 139 or 445 depending on how Netbios is configured.

Thanks,

Kevin McDonnell
Microsoft Corporation

This posting is provided AS IS with no warranties, and confers no rights.


John Fredrickson
1/8/2004 1:02:18 AM
Dear John, Ray, Linchi, and Kevin,

Thanks to everyone for responding. Your input was a great help.

Regards,

John Fredrickson

[quoted text, click to view]

AddThis Social Bookmark Button