Can't connect to SQL Server express from .net core app running on docker

前端 未结 2 1124
自闭症患者
自闭症患者 2021-01-20 13:57

I have SQL Server 2016 Express, docker for Windows and IIS installed on my Windows 10 machine.

SQL Server Express is configured to listen on 1455 port. The Northwind

2条回答
  •  借酒劲吻你
    2021-01-20 14:00

    The problem was I didn't disable Windows Firewall correctly.

    I turned off Windows Firewall, but only on Domain networks. Windows sees the DockerNAT adapter as a public network. So Windows firewall was blocking the connection to SQL Server.

    I turned off Windows Firewall on public networks and I can connect now.

提交回复
热议问题