Posts Tagged ‘Programming’

Wanted: A Google I/O 2011 Ticket

Friday, February 18th, 2011

[SOLVED: I was finally able to catch a Google IO ticket. See you in SF!]

Because the registration site for Google I/O 2011 was crap I was unable to get a ticket. ;-(

Therefore, I’m searching for a Google I/O 2011 ticket (either Academia or Regular).
If you want to sell one, please contact me and I’ll buy it for a reasonable price.

android [ATT] flattermann [DOTT] net

I’d really like to go this year…

If you like my work, buy me a beer. (Suggested: 3€ for a beer, or more for more beer ;-) )

Android: Howto find the hardware MAC address of a remote host

Monday, February 7th, 2011

I recently needed to find the MAC address of a remote host in my LAN by its IP address.

Unfortunately, Java/Android does not offer an API to find a MAC address by IP. :-(
The DatagramPacket class does not reveal this information for the source host, either.

But Android is Linux, and hence we can try to find the MAC by accessing the ARP cache information!

(more…)

If you like my work, buy me a beer. (Suggested: 3€ for a beer, or more for more beer ;-) )