You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Module: tested with 2 breakouts of NodeMCU v1.0 + Wemos D1 mini R2
Flash Mode: not sure
Flash Size: 4MB
lwip Variant: tested with all v2 types (Lower Memory/Higher Bandwidth)
Reset Method: not sure, all breakouts have RST btn
Flash Frequency: 40Mhz
CPU Frequency: 80Mhz
Upload Using: SERIAL
Upload Speed: tested all speeds from 115200 up
Problem Description
First of all, I have search the internet for hours including #4949 not find a solution!
The sketch connects to a wifi and wants to access a Windows host in LAN using Windows hostname (e.g. DESKTOP-123 as given in Windows 10 This computer's properties).
The sketch uses 2 methods one after each other (an in loop):
ping the host using ESP8266Ping library
direct call of WiFi.hostByName() from ESP8266WiFi library
(The ping uses a call to hostByName anyway.)
The problem is, that ping from ESP always fails with DNS lookup error: -5!
Ping within the same network from another PC host works fine.
Ping from ESP to a host in internet (e.g. www.google.com) works fine too.
I have tested this in 8 different LANs with different APs.
I understand, that DNS lookup may not resolve Windows host names (NetBios over TCP is not working here, as it would on a PC host).
Any idea, how to solve this?
Thanks for any help.
The text was updated successfully, but these errors were encountered:
milanbx
changed the title
Enable to connect to Windows host in local network using Windows host name
Unnable to connect to Windows host in local network using Windows host name
Apr 12, 2019
If your windows box does not register its name with the DNS on your router it won't work.
In general this is not a problem of the esp8266 arduino core but of your knowledge about networking, so please close this issue and look for help in some more appropriate forum like https://www.esp8266.com
Basic Infos
Platform
Settings in IDE
Problem Description
First of all, I have search the internet for hours including #4949 not find a solution!
The sketch connects to a wifi and wants to access a Windows host in LAN using Windows hostname (e.g.
DESKTOP-123
as given in Windows 10 This computer's properties).The sketch uses 2 methods one after each other (an in loop):
ESP8266Ping
libraryWiFi.hostByName()
fromESP8266WiFi
library(The ping uses a call to
hostByName
anyway.)The problem is, that ping from ESP always fails with
DNS lookup error: -5!
Ping within the same network from another PC host works fine.
Ping from ESP to a host in internet (e.g.
www.google.com
) works fine too.I have tested this in 8 different LANs with different APs.
I understand, that DNS lookup may not resolve Windows host names (NetBios over TCP is not working here, as it would on a PC host).
Any idea, how to solve this?
Thanks for any help.
MCVE Sketch
Debug Messages
*********
replaces real SSID and password.The text was updated successfully, but these errors were encountered: