# Unable to contact the device To resolve connectivity issues to contact Android devices, click [here](https://www.manageengine.com/mobile-device-management/kb/mdm-unable-to-contact-android-device.html). Last updated: July 24, 2026 ## Problem An error **Unable to contact the device** is displayed on the MDM server while trying to execute remote [Security Commands](https://www.manageengine.com/mobile-device-management/help/security_management/mdm_security_management.html) or a Device Scan on Apple devices. ## Reason Connectivity based issues on Apple devices occur when the devices are unable to contact the MDM server or the APNs servers, due to poor network connection, or non-accessibility to the domain itself. The following are the reasons due to which connectivity is interrupted: 1. [Server based issues](https://www.manageengine.com/mobile-device-management/kb/mdm-unable-to-contact-ios-device.html#server) 2. [Device based issues](https://www.manageengine.com/mobile-device-management/kb/mdm-unable-to-contact-ios-device.html#device) ## Resolution ### Server based issues 1. Retry scanning the device, by navigating to **Inventory > Devices> Actions > Scan Now.** 2. In case the device scan is not successful, it could be because the APNs certificate has expired, or if it has been removed from the server. Verify the APNs certificate expiry details, and if the certificate has expired, [renew the certificate](https://www.manageengine.com/mobile-device-management/help/enrollment/mdm_renew_apns_certificate.html). If the certificate has been removed, add it to the MDM server. 3. Follow the given steps to verify if APNs is reachable: - Check if **api.push.apple.com:443** is reachable from the machine where the On-premises version of MDM is hosted. - If Self-signed [SSL certificates](https://support.apple.com/en-us/HT211025) or Enterprises certificates from CA's have been used, check the [requirements](https://support.apple.com/en-in/HT210176) given by Apple. - While using the On-Premises version, if HTTPS inspection is used, Apple services will not function. To ensure that the required Apple services function, disable the HTTPS interception for all the hosts that are listed in this [document](https://support.apple.com/en-us/HT210060) provided by Apple. ### Device based issues 1. Check if the devices have Internet connectivity. 2. Follow the given steps to verify if the MDM server is reachable: - If you are using the Cloud version of MDM, ensure that **https://mdm.manageengine.com** is accessible from the device. - If you are using the On-Premises version of MDM, ensure that **https://[fqdn]:[port]** is accessible from the device. 3. If the device is connected to a corporate Wi-Fi network, check the connection to **api.push.apple.com** using the port 443 or 5223. For more information on how to reach the APNs servers, check this [document](https://support.apple.com/en-us/HT203609). 4. ![Certificate and private key required in the device keychain during iOS/Mac MDM enrollment](https://cdn.manageengine.com/mobile-device-management/help/images/t5.png) During iOS/Mac device installation, a certificate and private key shall be installed in the device. If this certificate is not found in key-chain then the agent will lose connection with the MDM server and the device will be unreachable. If the issue persists after trying out all the troubleshooting methods provided above, contact [support](https://www.manageengine.com/mobile-device-management/support.html).