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 PortsOutbound RulesSQL Server Configuration ManagerSQL Server Network ConfigurationTCP/IP and go to the IP AddressesTCP PortTCP/IP Property