Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mDNS Service Discovery #3767

Closed
igorquintal opened this issue Oct 28, 2017 · 1 comment
Closed

mDNS Service Discovery #3767

igorquintal opened this issue Oct 28, 2017 · 1 comment

Comments

@igorquintal
Copy link

Hi everyone!
I'm working on a project which connects an ESP8266 to a Raspberry Pi, which is operating as a server. I want to make requests to the Raspberry from the ESP without knowing its IP address. The Raspberry host name is simply raspberrypi, and I'm able to make requests using this hostname through Postman or any other browsers.
The strange thing is: if I use my own WiFi, and try http.begin("raspberrypi.local", 3000, "/test");, I cannot access the server, I get an error. If I use raspberry's IP address, it works perfectly.
But what is really strange is that if I start a HotSpot with my Android phone, and connect the ESP8266 and the Raspberry, and try http.begin("raspberrypi.local", 3000, "/test");, it WORKS!! The Raspberry is also running Avahi, but things don't work unless I'm on my Android hotspot (I tested other WiFi networks with no success).
I was told to use the mDNS library, but that does not seem to work. Is there anyway someone could help me out?
Thanks!

@devyte
Copy link
Collaborator

devyte commented Dec 5, 2018

Closing in view of #5442 with a full rewrite of mdns.

@devyte devyte closed this as completed Dec 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants