Hello,
I’m currently querying the balena supervisor from within a container and getting back a sensible response for device info:
[Logs] [3/25/2022, 10:18:13 AM] [beacon] Device Information:
[Logs] [3/25/2022, 10:18:13 AM] [beacon] api_port: 48484
[Logs] [3/25/2022, 10:18:13 AM] [beacon] ip_address: 192.168.1.168
[Logs] [3/25/2022, 10:18:13 AM] [beacon] os_version: balenaOS 2.87.16+rev1
[Logs] [3/25/2022, 10:18:13 AM] [beacon] mac_address: DC:A6:32:7D:48:F7 DC:A6:32:7D:48:F9
[Logs] [3/25/2022, 10:18:13 AM] [beacon] supervisor_version: 12.11.0
[Logs] [3/25/2022, 10:18:13 AM] [beacon] update_pending: False
[Logs] [3/25/2022, 10:18:13 AM] [beacon] update_failed: False
[Logs] [3/25/2022, 10:18:13 AM] [beacon] update_downloaded: False
[Logs] [3/25/2022, 10:18:13 AM] [beacon] commit: localrelease
[Logs] [3/25/2022, 10:18:13 AM] [beacon] status: Idle
[Logs] [3/25/2022, 10:18:13 AM] [beacon] download_progress: None
My main aim here is in getting the public-facing IP address, not the local one (as is returned in this case). On the dashboard, I see the device has the correct public IP displayed of the network it’s connected on. Does anyone know how to best get this info?
Cheers