First check whether the Frontend Server Service is started or not.
Secondly check the port 2021 is listening on the dynatrace server e.g. use the "netstat".
Thirdly telnet the port 2021 from the client machine (where you installed the dynatrace client).
Also make sure that you are using the correct IP Address of the APM Server.