Database Server whose remote connection port number is changed

Source: Internet
Author: User

When we maintain the database server, we often need to change the default port number (1433 by default) of the Database Service to ensure security. However, when the client connects to the database server, it is a little troublesome. I thought that when connecting to the Database Service, adding a port number after the IP address can solve the problem, but otherwise, for example, I want to link 192.168.20.47, which is a database server, the port number is changed to 1422, so when we connect, it is like this

However, when a connection is clicked, the connection is always unavailable, indicating that there is a problem or error in this case. How can this problem be solved?

Our server name is 192.168.000047, which must be correct, but what should we do with the port number? There must be a place for us to configure. If we connect to 192.168.20.47, it will automatically connect with port 1422. We looked at some tools in sqlserver and found that there is indeed a Configuration Manager in it,

Open the SQL native Client 10.0 configuration option, which has an "aliases" (alias) option, and may be set here, right-click "new ", you can add aliases, port numbers, protocols, and server names,

 

I will fill in the information just now, for example, the alias is 192.168.20.47, Prot No: 1422, Protocol: default (most of us are using the TCP/IP protocol), server: 192.168.20.47; then save.

Then I will return to the server connection screen. Enter the server name 192.168.20.47 and enter the user name and password to connect to the server!

 

Here, we need to note that when I added an alias, 192.168.000047 was added. When I returned to the connection server panel, 192.168.000047 was entered. If

If this alias is not used, for example, "47server", can I connect to the server panel or enter 192.168.47? The answer is no. It indicates that the server alias is entered on the connection server panel. It must be the same as the alias we just created. This is what you should pay attention;

 

Tag: sqlserver, remote, remote connection to the server, port number changed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.