title: ESP32 WebServer: How to get ip address of incoming clients
body: <p>With the help of <a href="https://randomnerdtutorials.com/esp32-access-point-ap-web-server/" rel="nofollow noreferrer">this tutorial</a> i created a simple WebServer on my ESP32:</p>
  <pre><code>void setup() {
    Serial.begin(115200);
  
    // Connect to Wi-Fi network with SSID and password
    WiFi.softAP(ssid, password);
  
    IPAddress IP = WiFi.softAPIP();
    Serial.print(&quot;AP IP address: &quot;);
    Serial.println(IP); //IP address of my ESP32
    
    server.begin();
  }
  </code></pre>
  <pre><code>void loop(){
    WiFiClient client = server.available();   // Listen for incoming clients
  
    if (client) {                             // If a new client connects
      Serial.println(&quot;New Client&quot;);           // print a message out in the serial port
      //...
    }
  }
  </code></pre>
  <p>How to get the ip addess of this connecting client?^^ So thats maybe something there like</p>
  <pre><code>String ipaddress = /*...*/;
  </code></pre>