Please write the content below in a text file and create a .bat file.
netsh firewall set opmode enable
netsh firewall set portopening protocol=TCP port=1433 name=”MsSQL”
pause 10
Run the .bat file on the server.
Note : Replace “port” and “name” as per your requirements.
]]>