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

Sending UDP messages #4

Open
francescaromana opened this issue Feb 1, 2022 · 1 comment
Open

Sending UDP messages #4

francescaromana opened this issue Feb 1, 2022 · 1 comment

Comments

@francescaromana
Copy link

Hi,

I am working on a project and I need two ESP32 to communicate over the network sending simple UDP packets.
I have been able to do this using WIFiUDP library, but everything works only if the two microcontrollers are in the same network (I can't do port forwarding for project's reasons).

To solve this issue I thought of using VPN and I found Husarnet that works really well.
I have been able to create the network and add the two ESP32 to it, the problem is that the controllers see each other and get the IPv6 and name of the peer, but WiFiUDP methods to send the packets only work with IPv4 or host name.
Since I don't have the IPv4, I tried to use the host name but it seems it does not work since I get the error "could not get host from dns: 11".

What am I doing wrong? How can I solve the problem?

@alissaav
Copy link

alissaav commented May 6, 2024

Hi! I'm having the exact same problem as you, did you find a way to solve it?

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