Please follow this step and check.
Open Control Panel
> System And Security
> Windows Defender Firewall
> `Advanced Settings
Click on Inbound Rules
> New Rules
Port
from the optionTCP
and specified the Port No Or Select All Local Ports
Outbound Rules
SQL Server Configuration Manager
SQL Server Network Configuration
TCP/IP
and go to the IP Addresses
TCP Port
TCP/IP
Property