문제

I'm trying to add a Data Connection in Visual Studio 2010 to a SQL Server 2008 database at a given IP (thru internet). What ports do I need to open up and forward to make the magic happen?

Any settings in the SQL Server I need to set to allow external connections?

도움이 되었습니까?

해결책

Port 1433 is the default one used.

See TCP/IP port numbers required to communicate to SQL over a firewall for more details.

The default SQL Server port is 1433, and client ports are assigned a random value between 1024 and 5000.

And:

The port doesn't need to be 1433, but 1433 is the official Internet Assigned Number Authority (IANA) socket number for SQL Server.

다른 팁

to to sql server configuration manager toi check the port being used and open that port.

Also, on Sql Server Management Studio, right click the instance -> Properties -> Connections -> Check "Allow remote connections to this server".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top