Microsoft article
https://go.microsoft.com/fwlink/?linkid=2094702

Inbound rules
Open PowerShell as an administrator

TCP
New-NetFirewallRule -DisplayName "SQLServer default instance" -Direction Inbound -LocalPort 1433 -Protocol TCP -Action Allow
UDP
New-NetFirewallRule -DisplayName "SQLServer Browser service" -Direction Inbound -LocalPort 1434 -Protocol UDP -Action Allow
Windows Firewall
C:\Windows\System32\wf.msc
C:\Windows\System32

wf.msc
