hi
I can access the server through the IP
But I can not access through local
Is there a solution to this problem I'm using Windows 10
//////////////////////////////////////////////////
#include<WiFi.h>
#include<ESPmDNS.h>
char ssid[] = "xxxxxxxx";
char pass[] = "xxxxxxxx";
WiFiServer server(80);
void setup() {
Serial.begin(115200);
WiFi.disconnect();
Serial.println();
Serial.println();
Serial.println("Coneecting to: ");
Serial.println(ssid);
WiFi.begin(ssid,pass);
while (WiFi.status() !=WL_CONNECTED){
delay (500);
Serial.println(".");}
Serial.println("");
Serial.println("WiFi is connected");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
while(!MDNS.begin("esp32")){
Serial.println("Error setting up MDNS responder!");
delay (1);
}
Serial.println("mDNS started");
server.begin();
Serial.println("Web server started");
}
void loop() {
WiFiClient client = server.available();
if(!client){return;}
while(!client.available()){delay(1);}
Serial.println(client.readString());
client.stop();
}
/////////////////////////////////
Is there any error in the code
esp32 mDNS
esp32 mDNS
- Attachments
-
- local.jpg (113.98 KiB) Viewed 7246 times
-
- Posts: 9727
- Joined: Thu Nov 26, 2015 4:08 am
Re: esp32 mDNS
Moved to the Arduino subforum.
-
- Posts: 1
- Joined: Wed Mar 27, 2019 4:10 pm
Re: esp32 mDNS
I am having the same problem. esp32.local doesn't work, but using DHCP assigned IP does work. I am on windows 10 and I tried several browsers. Sorry, but I also don't know what it means when you state "transferred to Arduino suforum"???
Who is online
Users browsing this forum: No registered users and 47 guests