all groups > sql server connect > july 2004 >
You're in the

sql server connect

group:

Securty connecting from internet to MSDE


Securty connecting from internet to MSDE ruben.sanchez NO[at]SPAM iname.com
7/29/2004 8:07:48 AM
sql server connect:
I'm trying to connect to a MSDE instance behind a firewall using
TCP/IP. I configured the firewall to redirect the 1433 and 1434 ports
to the MSDE server but it fails to connect. If I open de 135 and 445
ports it connects succesfully but it's quite risky to expose the
server this way, could anyone help me?
If I open the specific port that dynamically is asigned to the
instance and force it in the name (299.230.230.21\MYINSTANCE,1080) it
connects. How can I make connection without having to discover and
force the port?
The platform is:
WINDOWS 2000 PROFESIONAL SP4
MSDE 8.00.760
Thanks a lot in advance

Ruben Sanchez
RE: Securty connecting from internet to MSDE kevmc NO[at]SPAM online.microsoft.com
7/29/2004 9:33:04 PM
You need to set a fixed port for MSDE to listen on. Instances by default
listen on dynamic ports.
The client needs to use TCP/IP to connect and not Named Pipes. That's why
opening 135 and 445 allows it to work.
You're right these ports should NOT be open on the firewall.

To check the port being used.

If you are using the Server Network Utility, click "Start", point to
"All Programs", point to Microsoft SQL Server, and then click "Server
Network Utility". If you are using MSDE or the command line, click
"Start", and then click "Run". In the "Run" dialog box, type
"svrnetcn.exe" (without the quotation marks), and then click "OK".

To set the port to a fixed port, just type in the port number you'd like.
Then restart the MSSQL$ instance for it to take
affect.

Then, change you clients to connect to this specific port. Either use the
SQL Client network Utility or change your connection strings



Thanks,

Kevin McDonnell
Microsoft Corporation

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


Re: Securty connecting from internet to MSDE ruben.sanchez NO[at]SPAM iname.com
7/30/2004 5:19:26 AM
Thanks a Lot for your quick response
Could I force the fixed port in the registry? The MSDE doesn't provide
the administration tool you mention and the database is distributed
automatically to the client bundled in an app.

Ruben Sanchez
Argentina

[quoted text, click to view]
Re: Securty connecting from internet to MSDE kevmc NO[at]SPAM online.microsoft.com
7/30/2004 7:33:30 PM
You should be able to run : svrnetcn.exe if you have MSDE.

Otherwise, the registry location is:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL
Server\InstanceNameHere\MSSQLServer\SuperSocketNetLib\Tcp

Modify the TcpPort


Thanks,

Kevin McDonnell
Microsoft Corporation

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


AddThis Social Bookmark Button