New Search

If you are not happy with the results below please do another search

1 search result for:

1

get WAN IP arduino

void GetExternalIP() { WiFiClient client; if (!client.connect(“api.ipify.org”, 80)) { Serial.println(“Failed to connect with ‘api.ipify.org’ !”); } else { int timeout = millis() + 5000; client.print(“GET /?format=json HTTP/1.1\r\nHost: api.ipify.org\r\n\r\n”); while (client.available() == 0) { if (timeout – millis() < 0) { Serial.println(“>>> Client Timeout !”); client.stop(); return; } } int size; while ((size = client.available()) > […]