Category filter
Using a Port Scanner to Validate Hexnode UEM Network Connectivity
At a Glance
In a UEM environment, a pending command usually indicates that the endpoint has not yet acknowledged, received, or reported completion of the command. The cause may be network-layer blocking, device offline state, OS throttling, push notification delay, or platform-specific restrictions. Hexnode UEM relies on outbound device connectivity to Hexnode cloud services and platform notification services such as APNs, FCM, WNS, and MQTT. These services help wake devices or notify them to check in with Hexnode for pending commands, policies, or actions.
A port scanner is a critical diagnostic tool used to test these precise network pathways, verifying whether a local firewall, web proxy, or ISP is silently dropping required traffic. Rather than guessing why a fleet is unresponsive, IT administrators use port scanning to validate whether an endpoint can successfully resolve hostnames and reach necessary cloud infrastructure. This guide details how to leverage port scan results to troubleshoot network-layer blocks, validate security rules, and restore Hexnode connectivity across your enterprise.
Note: Port scanning is a network-layer diagnostic. It helps prove whether required pathways are reachable, but Hexnode command execution also depends on device state, enrollment, push services, certificates, permissions, OS restrictions, and action-specific prerequisites.
What a Port Scanner can and cannot Prove
A port scan is an invaluable diagnostic step, but it must be interpreted correctly. It validates network reachability, not OS-level application behaviors.
| Admin Question | Can a Port Scanner Answer It? | Technical Explanation |
|---|---|---|
| Is the firewall blocking APNs/FCM/WNS/MQTT ports? | Yes, partly | It can test whether specific ports are reachable from the test network. |
| Is DNS resolving correctly? | Partially | Use nslookup, dig, or Resolve-DnsName for proper DNS validation. |
| Why does Remote View fail? | Partially | It can test STUN/TURN reachability, but not permissions, NAT behavior, session state, or endpoint readiness. |
| Is SSL Decryption breaking traffic? | No/Partially | A port scan shows TCP reachability, not TLS trust integrity. Use TLS/certificate testing and proxy logs. |
| Is the OS ignoring the push token? | No | Port scanning cannot diagnose OS sleep, token state, app throttling, or battery optimization. |
Hexnode-Specific Port Validation Matrix
When troubleshooting device unresponsiveness, do not test blindly. Map the symptom directly to the required cloud infrastructure protocol.
| Problem | What to Validate | Why it Matters |
|---|---|---|
| Devices are not enrolling | HTTPS (TCP 443), DNS (TCP/UDP 53) | The absolute baseline required for portal reachability, identity validation, and profile downloads. |
| Android commands stay pending | FCM (TCP 5228, 5229, 5230, 443), MQTT (TCP 1883, 8883) | Required to wake Android devices from sleep and trigger continuous sync via Hexnode’s broker. |
| Apple devices do not receive commands | APNs (TCP 5223, 443) | Apple devices require a persistent APNs connection over 5223 to listen for MDM wakeups. |
| Windows commands fail | WNS (TCP 443) | WNS uses TCP 443 to deliver notifications. After notification, the Windows device checks in with Hexnode to retrieve tasks or commands. |
| Remote View fails to connect | STUN/TURN (TCP/UDP 3478, 5349) | WebRTC requires these specific ports for NAT traversal and screen stream relay between endpoint and portal. |
Network Vantage Point: Where to Run the Scan
A massive administrative blind spot is testing from the wrong network layer. A successful scan from an IT administrator’s unlocked laptop does not reflect the reality of a restricted kiosk endpoint. You must scan from the exact vantage point of the failing device.
| Device/Network Scenario | Required Validation Point |
|---|---|
| Corporate Wi-Fi (SSID) | Run the scan from a test device connected exactly to that specific SSID and VLAN. |
| Kiosk or Warehouse VLAN | Scan directly from the restricted subnet, not the privileged IT admin subnet. |
| Remote User on Corporate VPN | Scan with the VPN client active to test split-tunnel routing and gateway restrictions. |
| Cellular-only Endpoints | Cellular-only endpoints: test over the same carrier connection to identify carrier filtering, captive portal behavior, APN restrictions, or blocked outbound ports. |
| Technician to Endpoint (Remote View) | Validate STUN/TURN ports from both the admin’s viewing machine and the target endpoint. |
Operational Troubleshooting Workflow
When a Hexnode action fails, follow this structured workflow to isolate the network variable:
- Identify the Failed Action: Determine if the failure is platform-specific (e.g., only Apple devices failing points to APNs) or universal (points to baseline HTTPS/DNS).
- Match to the Port Matrix: Identify the required ports (e.g., 5228 for FCM, 5223 for APNs) using the validation matrix above.
- Execute from the Correct Vantage Point: Use a port scanner (like nmap, Test-NetConnection, or Network Utility) from a device on the exact same network segment as the failing endpoint.
- Validate Outbound-Only Traffic Paths: Ensure you are testing outbound connections to Hexnode domains. UEM architectures do not require inbound firewall ports to be opened.
- Check for Proxy/SSL Decryption: If the port is open but the device remains offline, verify if your firewall is performing Deep Packet Inspection (DPI) or SSL Decryption. TLS inspection or certificate substitution can break platform notification services because devices and services expect trusted end-to-end TLS sessions.
- Verify Hostname Resolution: Run nslookup on the endpoint to ensure the network’s DNS server is successfully resolving Hexnode and OEM notification domains.
“Port Open But Hexnode Still Failing” Diagnostics
Network administrators often fall into the trap of over-trusting a clean port scan. If the scanner shows green but the UEM action still fails, investigate these hidden causes.
| Symptom | Hidden Cause |
|---|---|
| Android ignores FCM pings | Android commands stay pending even though FCM ports are reachable. The device may be offline, restricted by OEM battery optimization, missing required app permissions, or unable to run the Hexnode agent reliably in the background. |
| Apple device stays pending | The device may be offline, unable to reach APNs, not checking in, affected by push-token/certificate issues, or delayed by OS/network state. |
| App deployment stuck at “Pending” | The network is fine, but the VPP or Managed Google Play license is missing, unallocated, or facing a regional mismatch. |
| UI errors despite open TCP 443 | CDN/CloudFront regional IP variances are being blocked by strict, outdated firewall IP allowlists. |
Defensive Scanning Bounds & Glossary
Defensive Boundary: Port scanning in a UEM troubleshooting context is strictly defensive. You are validating authorized outbound communication lines to known Hexnode and OEM infrastructure. Avoid aggressive or broad scanning against third-party or Hexnode-owned infrastructure. Limit testing to authorized connectivity checks for required ports and domains, and coordinate with your security/network team if deeper testing is required.
Glossary Matrix
| Term | Definition |
|---|---|
| Port Scanner | A software tool used to probe a network endpoint or server to determine if a specific data port is open, closed, or filtered. |
| TCP / UDP | TCP (Transmission Control Protocol) ensures reliable, ordered delivery. UDP (User Datagram Protocol) prioritizes speed over reliability (critical for Remote View STUN/TURN). |
| Outbound vs. Bidirectional | UEM requires devices to reach out to the cloud (Outbound). You do not need to open inbound ports mapping the internet to your devices. |
| DNS Resolution | The process of translating a domain name (hexnode.com) into a machine-readable IP address. |
| Allowlist | An explicit list of permitted domains or IPs in a firewall designed to block all other traffic. |
| Push Notification Service | OEM infrastructure (APNs, FCM, WNS) used to send lightweight “wake up” signals to dormant devices. |
Frequently Asked Questions
What is a port scanner used for in UEM troubleshooting?
In UEM troubleshooting, a port scanner is used to definitively prove whether a local network (firewall, proxy, or ISP) is blocking the specific outbound communication pathways a device needs to receive commands, sync policies, or transmit remote view telemetry.
Can a port scanner prove that Hexnode UEM is working perfectly?
No. A port scanner only proves network reachability. It cannot confirm if the device is awake, if the device’s push token is valid, if SSL interception is breaking the payload, or if the device has enough battery to execute the MDM command.
Which ports are the absolute baseline for Hexnode UEM?
The absolute baseline ports for basic portal communication and profile downloads are TCP 443 (HTTPS) and TCP/UDP 53 (DNS). Without these two, devices cannot enroll or sync.
Why do Hexnode commands stay pending even when ports are confirmed open?
If ports are open but commands pend, the issue is usually OS-level. This includes aggressive battery-saving modes killing the Hexnode agent, the device being in a deep sleep state (common with iPads), SSL decryption actively breaking the secure handshake, or a revoked push certificate.
Should I allowlist static IP addresses or domain hostnames?
Always allowlist domain hostnames, never static IP addresses. Hexnode leverages global Content Delivery Networks (CDNs) and load balancers, including CloudFront endpoints like static.hexnodemdm.com and downloads.hexnode.com. These services dynamically rotate IP addresses based on regional routing and load. If you allowlist static IPs, your firewall will eventually drop traffic when the CDN shifts to a new IP range, instantly breaking UEM connectivity.