Unable to connect remotely to new SQLServer 2022 Express

Bob Vitter 201 Reputation points
2023-05-05T14:18:20.5966667+00:00

I setup a VM (VMWare) to test SQL Server 2022

I used SQL Server Config Mgr to allow remote access and set the port

I can connect to the instance locally from SSMS and and connect to other instances (2019) from this VM

but I can't connect remotely to this instance from this VM or a physical PC

The VM and PC are in the same domain and I am using the domain Admin user id

SQL Server Other
0 comments No comments
{count} votes

Accepted answer
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2023-05-05T21:34:09.8966667+00:00

    What error message do you get?

    Did you start the browser service?

    How do you connect? By instance name or port?

    1 person found this answer helpful.

4 additional answers

Sort by: Most helpful
  1. Michael 5 Reputation points
    2023-09-11T19:58:49.0633333+00:00

    By default SQLExpress 2022 has TCP and Named Pipes disabled as protocols for the instance. If you open SQL Server Configuration Manager and browse to SQL Server Network Configuration > Protocols for <NAMED INSTANCE> you will see three protocols enabled. Shared memory is the only one enabled. Enable TCP/IP and restart the SQL Server service.

    Provided you are allowing the ports you need through the firewall, you will be connected. You had indicated that you disabled the firewall, so that will likely not be an issue.

    More here about what ports to open on the firewall if you would like to turn it back on.
    https://learn.microsoft.com/en-us/sql/sql-server/install/configure-the-windows-firewall-to-allow-sql-server-access?view=sql-server-ver16

    1 person found this answer helpful.
    0 comments No comments

  2. Thirthaprasad S G 31 Reputation points
    2024-11-27T06:33:08.04+00:00

    Hi All,

    I forgot to mention that, even the LOCALHOST was unable to connect to port 1433 in the present scenario. In previous versions of SQL (2014) though it was connecting Remotely but wasn't happening with localhost.

    I have finally figured it out. It is the TCP/IP port for "IPAll" portion which was not specified to use 1433 leading to this connectivity issue with localhost as well as from Remote Hosts. Once I specified the port 1433 in IPAll settings and restarted the SQL Server service, both connections worked successfully.

    Below is the screenshot of that particular setting which worked for me...!

    User's image

    1 person found this answer helpful.
    0 comments No comments

  3. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2023-05-05T14:48:12.56+00:00

    Be sure the sql server port 1433 is open on the firewall of both the vm and hosting O/S

    also check if the vm network is bridged or proxied behind the host. Can you ping the vm from a remote box.

    0 comments No comments

  4. Bob Vitter 201 Reputation points
    2023-05-05T15:59:59.54+00:00

    I disabled the Firewall on the VM

    The network is not bridged or proxied and I can Ping the VM

    WSUS found the VM

    VM has SSMS 19.0.2 and SQLExpress 2022

    Physical PC has SSMS 18.12.1 and SQLExpress 2019

    The VM SSMS can connect to the physical PC SQLExpress but does not see the VM SQLExpress

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.