'How to connect to Microsoft SQL Server on a local VM?

I have a Windows 10 VM with SQL Server installed on it. I made sure, that in the Sql Server Configuration Manager the SQL Server Browser is running and the TCP/IP protocol is enabled.

I'm trying to connect to the server with Entity Framework (although I'm not sure if it's relevant) and I'm getting this error:

Cannot connect to SQL Server Browser. Ensure SQL Server Browser has been started.

That's the connection string that I'm using:

Integrated Security=SSPI; Persist Security Info=False; Initial Catalog=<database name>; Data Source=<server name>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source