Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Message from Android to Android without Accesspoint

I have two Android-Devices, i have no IP-Addresses the Mac-Addresses are

 d0:e7:82:fa:90:33 (a)
 8c:bf:a6:a8:77:8f (b)

how to send a byte from a to b? Is it possible?

EDIT: droped DatagramSocket-Sources because its packed-based.

By the way: Wifi-Direct or Bluetooth is not supported by the devices.

like image 997
Grim Avatar asked May 15 '15 12:05

Grim


2 Answers

You can use UDP to broadcast message. It simply broadcast the message and every device on the networks gets it, even the sender. However, message delivery in UDP is not guaranteed, it may drop. So you need to handle that on client side.

like image 174
Sarim Sidd Avatar answered Sep 28 '22 18:09

Sarim Sidd


As some mentioned, this is not possible without an active connection!

Because any other way will loose support and warranty:

I realy was able to send packages between those devices in 802.11(by filter uninterresting octets) without beeing connected but all devices must be rooted!

Another solution i successfully handled: was to download the Android OS-Sources and compile a realy own OS having modified permission-checks (loose of warranty).

like image 42
Grim Avatar answered Sep 28 '22 19:09

Grim