-
Notifications
You must be signed in to change notification settings - Fork 455
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
send udp to specific ip address instead of broadcast #309
Comments
Have the same problem. When you look at the sender endpoint in receiving application all is good, the port number and IP are correct. Set destination to the receiving apps IP, wont send. While not the end of the world, I have several devices doing this and it certainly adds a lot of unnecessary traffic and processing for all the modules. |
i had the same problem. after setting mask problem solved. static byte myip[] = { 192,168,178,180 }; ether.staticSetup(myip, gwip, dnsip , mask); |
Thanks @metinkun. Good spot! Yes, without the subnet mask, then EtherCard won't know if the IP address is on the local subnet or not. @farmerbriantee would be great to know if it fixes your problem too. I should get the examples updated. |
What I have done is to extend the library so I can call:
Hacked branch: hecko@46d8812 |
I cant seem to send a udp message to a specific ip address. broadcasting at 255.255.255.255 does work. Ive seen other issues address this problem, but have not seen a resolution. I dont see the packet appear on WireShark, which suggests it is not a firewall problem right? any help is greatly appreciated. this is my arduino code:
The text was updated successfully, but these errors were encountered: