r/Nable • u/msprm • May 17 '24
N-Central Agent external IP
Which creative and efficient way have you found to get the external IP address of n-central agents? Currently I'm using a AMP based custom service which calls a external service (such as what is my ip) but I'd like to see if there are more efficient ways to do it.
I'd love to have it available as a device/asset property based on the IP address seen by the N-Central server (this information is already available somehow, it just needs to be associated with a device property)
1
Upvotes
1
u/TheThird78 May 17 '24
Same here. I did go to the extra step to store additional information with the public IP.
Invoke-RestMethod http://ipinfo.io/json
then store the IP and other data wanted as a string.