How to Find IoT Device IP Address

The IP address of the IoT (Internet of Things) device is the unique identifier of the device on the network. The IP address allows the device to connect to the network and allows it to communicate with other devices. In some cases, we need the Global IP address of the IoT device. In order to PING the device and monitor the device, it is necessary to know the IP address.

Here are some important functions of the IP address of the IoT device:

1. Communication: The IP address allows the IoT device to communicate with other devices. Using this address, the device can exchange data, receive commands or send data to other devices.

2. Authentication: The IP address provides the unique identity of an IoT device on the network. Other devices on the network can perform and confirm authentication processes using the IP address of the IoT device.

3. Discovery and Access: An IoT device’s IP address makes it easy to find and access by other devices on the network. Other devices can communicate and exchange data with it using the device’s IP address.

4. Management: The IP address can be used for the management of the IoT device. Administrative functions such as accessing the device’s configuration settings or receiving updates can be performed via the IP address.

5. Remote Access: Most IoT devices allow users to access their devices remotely. The IP address allows users to remotely access the device so that the device can be controlled or data monitored.

To summarize, the IP address of the IoT device provides the device’s unique identity on the network and able to communicate with other devices. It also simplifies device discovery, management, and remote access.

IoTHook IoT Device Get Global IP Address API

To find the IP address of the IoT device, you need to send a GET request from your Device to the IoTHook site. You can find the IoT IP address by making a GET request to or .

When IoTHook requests a GET, it can sample the IP address from JSON format as follows. {“ip”:””}

IoTHook IoT Device Get Global IP Address API Arduino Ethernet Shield


  IoT Device Find Global IP Address


#include <SPI.h>
#include <Ethernet.h>

byte mac[] = {
  0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED

IPAddress ip(192, 168, 1, 177);
IPAddress myDns(192, 168, 1, 1);

EthernetClient client;

char server[] = "";

unsigned long lastConnectionTime = 0;
const unsigned long postingInterval = 20 * 1000;

void setup() {

  while (!Serial) {

  Serial.println("Initialize Ethernet with DHCP:");
  if (Ethernet.begin(mac) == 0) {
    Serial.println("Failed to configure Ethernet using DHCP");
    // Check for Ethernet hardware present
    if (Ethernet.hardwareStatus() == EthernetNoHardware) {
      Serial.println("Ethernet shield was not found.  Sorry, can't run without hardware. :(");
      while (true) {
    if (Ethernet.linkStatus() == LinkOFF) {
      Serial.println("Ethernet cable is not connected.");

    Ethernet.begin(mac, ip, myDns);
    Serial.print("My IP address: ");
  } else {
    Serial.print("  DHCP assigned IP ");



void loop() {

  if (client.available()) {
    char c =;

  if (millis() - lastConnectionTime > postingInterval) {


void httpRequest() {


  if (client.connect(server, 80)) {

    client.println("GET /api/find-ip-address/ HTTP/1.1");
    client.println("User-Agent: arduino-ethernet");
    client.println("Connection: close");

    lastConnectionTime = millis();
  } else {
    Serial.println("connection failed");