Myself trying to connect to the Server for the Log Shipping purpose and for the Secondary Server location when invoked has found with the following error.
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 5)
I knew this is from the CONFIGURATION MANAGER where the server allocation is up or down but I could able to connect when pinging to the Secondary server from Database Engine Connection on SSMS platform, but not when invoking for the Log Shipping Connecting Server.
Also, checked the Name Pipes provider is TRUE but still unable to get the Secondary Server connection for Log Shipping.
Your help is much admired. Thanks