Your application cannot reach a service that should be up. Walk me through diagnosing it from the shell.
Work up the layers and let each command eliminate a class of cause: resolve the name, check the route, see whether anything is listening, then decide from the failure mode whether packets are being refused, silently dropped, or answered by something that never replies.