Get the current number of connections to an RTU (Remote Terminal Unit) Player instance
- Last UpdatedApr 24, 2025
- 1 minute read
To get the current number of connections
-
To get the current number of connections to an RTU (Remote Terminal Unit) Player instance, issue a GET using the following URL format:
http://localhost:<portnumber>/Simulation/ConnectionCount
Where:
-
portnumber is the port specified in the RTU Player configuration file.
-
The following example details an issued request for the current status using the curl command line utility:
curl -v -X GET http://localhost:63280/Simulation/ConnectionCount
An active status should return as follows:
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 63280 (#0)
> GET /Simulation/ConnectionCount HTTP/1.1
> Host: localhost:63280
> User-Agent: curl/7.53.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 1
< Content-Type: application/json; charset=utf-8
< Server: Microsoft-HTTPAPI/2.0
< Date: Thu, 23 Nov 2017 22:10:49 GMT
<
12* Connection #0 to host localhost left intact
Note: The number of connections is found on the last line. In the provided example, there are 12 active connections.