0

Given the device itself or its own twin, how can I obtain its public IP address?

I was reading the Microsoft APIs for Azure IoT Hub with no results.

Istorn
  • 485
  • 1
  • 5
  • 23
  • Just out of curiosity, what are you going to do with the public IP address of a **device** that already "calls home" by design? – evilSnobu Jul 11 '19 at 07:07
  • It's a nice question without answer: customer hasn't specified this request. – Istorn Jul 11 '19 at 17:44
  • @evilSnobu if you don't know where your devices are located the IP addresses might allow your to roughly figure out their location (like what country they are in right now,..) – stmax Jan 16 '20 at 13:06

1 Answers1

-1

You can use “nslookup” to get the IP address of the IoT Hub.

Ex: nslookup IoTHubname.azure-devices.net

Note that, once you have created an IoT hub in an Azure region, the IoT hub keeps the same IP address for the lifetime of that IoT hub. However, if Microsoft moves the IoT hub to a different scale unit to maintain quality of service, then it is assigned a new IP address.

Also, check this feedback item on the user voice forum and upvote.

AshokPeddakotla
  • 1,010
  • 7
  • 18