Get Connected Clients
Retrieve a list of all currently connected TAK clients.Authentication
This endpoint requires IP-based authentication. The requesting IP address must be in theAllowedCLIIPs configuration list.
Response
Returns an array of connected client objects serialized to JSON.Array of connected client objects
Response Example
IP-Based Authentication
The/Clients endpoint uses IP-based authentication for security. To configure allowed IPs:
- Edit your FreeTAKServer configuration file
- Add IP addresses to the
AllowedCLIIPslist:
Behind a Proxy
If FreeTAKServer is behind a reverse proxy (nginx, Apache, etc.), ensure the proxy forwards the real client IP using headers like:X-Forwarded-ForX-Real-IP
Connection Management
The connections API provides read-only access to connection information. To manage connections:- Disconnect clients: Use administrative commands or terminate connections at the CoT service level
- Monitor activity: Use the connection timestamp to detect stale clients
- Track teams: Group clients by team affiliation
Use Cases
Server Monitoring
Query the connections endpoint periodically to:- Monitor server load (number of connected clients)
- Detect connectivity issues
- Track team member availability
- Generate activity reports
Dashboard Integration
Integrate with monitoring dashboards:Team Coordination
Use connection data to:- Verify team members are online before missions
- Track team composition in real-time
- Identify missing or disconnected members
Connection State
Client connection information is maintained by FreeTAKServer’s CoT services:- TCP CoT Service: Port 8087 (default)
- SSL CoT Service: Port 8089 (default)
lastSeen timestamp.
Error Responses
401 Unauthorized
AllowedCLIIPs list.500 Internal Server Error
Related Endpoints
For user management and authentication, see:- User Management API (certificate generation, user creation)
- Authentication endpoints
Security Considerations
- Restrict Access: Only add trusted IPs to
AllowedCLIIPs - Monitor Usage: Log all requests to this endpoint
- Regular Audits: Periodically review the allowed IP list
- Network Segmentation: Place FreeTAKServer in a protected network segment
- Rate Limiting: Consider implementing rate limiting for this endpoint