'Artifactory test connection from jenkins gets failed with timed out

I'm using Jenkins Artifactory Plugin and I have this error:

Error occured while requesting version information: 

connect to [myurl..:8081] failed: connection timed out: connect

I can login to the Artifactory UI but the connection from Jenkins (using Jenkins Artifactory plugin) is failed.

is it something MYSQL database error!?



Solution 1:[1]

Looks that you don't have connection between machines.

Can you check it? Launch a ping from your Jenkins machine to your Artifactory machine.

From Jenkins machine:

ping ArtifactoryMachine

Solution 2:[2]

Try disabling the firewall with ufw disable if it's a Linux machine.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Javier C.
Solution 2 Shubhesh Swain