If you trying to connect to a database, directory server or for any server for that matter and while you are running your application server, you are getting the Error message “
Connection timed out“ in the stack trace, then, try the following remedies and see if these can help you :
1. Check in your configuration file whether you have given the correct IP address and port number of the server your trying to connect to.
2. Check if the credentials i.e. usernames and passwords are correct or not.
3. Unblock the ports of the server which you want to access in the firewall of the server.
Try running the application server once again and see if this helps or not.