Check if the given Host Name / IP Address is correct.
Run the below command in Applications Manger installed server to ensure Host / IP Address is reachable.
ping <Host Name/IP Address>
Eg: ping apm-server