简体   繁体   中英

Connecting to ESP8266 from Android device using socket

I'm trying to connect to my ESP8266 on a local network via TCP socket initiated from Android. The IP address of ESP changes everytime I restart my router thereby I gave it "esp.local" hostname.

Is there any way to connect to the ESP directly from Android not via IP address but through local hostname?

You will be in need of mDNS feature.

Read about it in here .

Take a look how the things done in ESP side from here .

Get the ESP8266 mDNS example from here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM