Error after sending 1 command?
I keep getting an error when I try to use the tasker plugin. The standalone UDP app works fine when I try to turn off my Milight bulbs (text command 0x420x000x55) but whenever I use UDP sender in tasker (intent or tasker plugin) for just a simple off or on command (single action task), it works the fist time. However, every time after that, it gives an error:
java.net.SocketException: sendto failed: EPERM (Operation not permitted)
It usually (but not always) works if I try again in say 10 minutes.
Device: Samsung Galaxy S6 on Android 6.0.1
I think these guys found a fix to a similar issue: https://github.com/EsotericSoftware/kryonet/issues/106
I have the same problem. Using Tasker to send a short UDP message when phone rings. It fails about 50% of the time. Manual testing always works. Just replaced UDP Sender with Android.intent.action.SENDTO, and get the same exception. So this is a deeper problem. Device: LG G4 on ANdroid 6.0
This is an issue on my Google Pixel. On first reboot I get this error however upon launching UDP sender manually it seems to work from tasker consequently and until the next reboot. I don't think this app is under development anymore :(
For those getting this error make sure that both UDPSender and Tasker are excluded from any form of battery management/power saving/optimisation.
An example of how to do this for Android Marshmallow/Nougat is here: http://fieldguide.gizmodo.com/how-to-exclude-certain-apps-from-androids-battery-savin-1742064352
Excellent advice. UDPsender was on battery optimisation, after excluding it has been working fine. What a relief! Thank you very much!