Scenario Find IP and Port of a SQL Server from a client machine. The script will not provide all the…