Check your firewall settings first, sometimes it blocks the port!
https://www.perplexity.ai/search/error-p1001-can-t-reach-databa-mHvOumSkQ6CCX9ZqMQPtOA