Android Things UDP Socket over IPv6

52
February 12, 2019, at 04:20 AM

There is pretty much no error logs but it can't actually send anything over mesh network on udp. Seems to receive without any issues but on send it doesn't go.

try {
sock = new DatagramSocket(null);
udpPacket = new DatagramPacket(data.getBytes(), data.length(), InetAddress.getByName(deviceAddr), portServer);

sock.send(udpPacket);
Log.e(TAG, "Connection send: " + data);
if (!sock.isClosed()) {
sock.close();
Log.e(TAG, "Socket Closed");
}
} catch (SocketException e) {
Log.e(TAG, "Socket Issue: " + e.getMessage());
} catch (UnknownHostException e) {
Log.e(TAG, "Host Issue: " + e.getMessage());
} catch (IOException e) {
Log.e(TAG, "IO Issue: " + e.getMessage());
}

thats the code for send over udp.

Here is the addr: fdde:ad00:beef:0:8142:58d9:a2a3:7377 port is 1212 and on receive there are no trouble. I have no more ideas did try quite a lot with the code and workarounds but without any solution. The other devices on the network seem to communicate with each other without no issue on udp send and receive.

Any thoughts?

READ ALSO
Android X + Truth + Guava test compile issue

Android X + Truth + Guava test compile issue

I have an Android library (called api) gradle module as part of a larger projectI just migrated the whole project to AndroidX

38
Remove native base FABs ripple effect on android

Remove native base FABs ripple effect on android

I'm having problem with native base FAB button it shows a square ripple effect when i press it

60
Any idea how to create an elegant ripple effect for audio recording button - as in Google Keep

Any idea how to create an elegant ripple effect for audio recording button - as in Google Keep

Google Keep's audio recording dialog, as a nice ripple effect around the recording button, when you perform voice recording

50