Connection Timeout Expired

One of my terminals cannot connect to the database ,the other 2 terminals are working perfectly.What could be the cause of this error
and how do i solve it?

Turn off your firewall and try again. If that fixes it you’ll know it’s a port issue.