6

I am using the Sonoff-Tasmota firmware to configure ESP-8266 devices for my home automation system. These devices log onto the WiFi network and obtain IP addresses via DHCP. The problem is that after they come up on the network they are not accessible to the web browser using their hostname.

I have other devices (like Raspberry Pi and windows PC's) that also use WiFi and DHCP and they can be accessed using their hostnames, so I think the router is working ok.

I have traced the DHCP dialog using Wireshark and I can see the hostname in the request, so I don't know what else to do. Any ideas?

1
  • 2
    Is there a process listening for incoming connections on port 80 running on the devices you are trying to connect to? You can use nmap to scan the devices to check for open ports
    – julian
    May 9, 2017 at 16:54

1 Answer 1

4

Try ping this device by its hostname.

C:\Windows\system32>ping bacchus

Envoi d’une requête 'ping' sur bacchus.home [192.168.1.11] avec 32 octets de données :
Réponse de 192.168.1.11 : octets=32 temps=1 ms TTL=64

Also don't forget your network suffix (mine is .home as you can see on top), you can find this information with an ifconfig/ipconfig /all or by reverse-searching your domain name.

C:\Windows\system32>ping -a 192.168.1.11

Envoi d’une requête 'ping' sur bacchus.home [192.168.1.11] avec 32 octets de données :
Réponse de 192.168.1.11 : octets=32 temps<1ms TTL=64

If the ping is successful you can do as @SYS_V says : run nmap to be sure the 80 port isn't already occupied.

2
  • 2
    It might work even though the ping fails. Devices don't have to react to pings.
    – Helmar
    May 10, 2017 at 16:00
  • 1
    Yes, ping is just to get/resolve the hostname to see how it reacts to the network.
    – Goufalite
    May 10, 2017 at 16:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.