2019年7月3日 星期三

VMWare設成NAT後, 讓Host可以連線到VM的設定

Step 1) 關閉VM中的Firewall
Step 2) 在VM中輸入以下Command即可(不用重開機)
netsh firewall set portopening protocol = TCP port = 1433 name = SQLPort mode = ENABLE scope = SUBNET profile = CURRENT
netsh advfirewall firewall add rule name = SQLPort dir = in protocol = tcp action = allow localport = 1433 remoteip = localsubnet profile = DOMAIN

from : https://docs.microsoft.com/zh-tw/sql/sql-server/install/configure-the-windows-firewall-to-allow-sql-server-access?view=sql-server-2017

沒有留言:

wibiya widget