Skip to content

Failed to ping in softAP mode #4963

Closed
Closed
@pramitbiswas

Description

@pramitbiswas

Platform

  • Hardware: [ESP-12e]
  • Core Version: [latest git hash or date]
  • Development Env: [Arduino IDE]
  • Operating System: [Windows 10]

Settings in IDE

  • Module: [Nodemcu]
  • Flash Size: [4MB/1MB]
  • lwip Variant: [v2 Lower Memory]
  • Flash Frequency: [40Mhz]
  • CPU Frequency: [80Mhz]
  • Upload Using: [SERIAL]
  • Upload Speed: [115200]

Problem Description

I'm not able to ping esp8266.local from cmd.

MCVE Sketch

	/* Headers */
	#include <ESP8266WiFi.h>      // ESP8266WiFi library
	#include <WiFiClient.h>
	#include <ESP8266mDNS.h>        // Include the mDNS library

	void setup() {
	  // put your setup code here, to run once:
	  Serial.begin(115200);
	  delay(1000);

	  WiFi.softAP("ssid","PassW0rd");
	  
	  if (!MDNS.begin("esp8266")) {             // Start the mDNS responder for esp8266.local
		Serial.println("Error setting up MDNS responder!");
	  }
	  Serial.println("mDNS responder started");

	  delay(5000);
	}

	void loop() {
	  // put your main code here, to run repeatedly:
	}

Debug Messages

Wifi can be accessed and in serial console it shows

mDNS responder started

However, I'm not able to ping esp8266.local from cmd, but can be accessed using ip address.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions