I am trying to setup my ESP32-arduino Web server to localhost on port 8080.
What should I mention for the gateway IP address?
My current code is as follows:
IPAddress staticIP(127, 0, 0, 1);
IPAddress gateway(127, 0, 0, 1);
IPAddress subnet(255, 255, 0, 0);
IPAddress primaryDNS(8, 8, 8, 8); //optional
IPAddress secondaryDNS(8, 8, 4, 4); //optional
if (WiFi.config(staticIP, gateway, subnet, primaryDNS, secondaryDNS) == false) {
Serial.println("Configuration failed.");
}