Android Network Discovery Service (ish) before API 14
问题 I need to be able to discover the services on the local network (so say I am running a chat application and I want to discover other devices on local network running this chat), but sadly I need to be able to use it on devices with API < 16 (so I cannot use android.net.nsd) I am sure this can be done without using NSD API. Question is how. Any help? 回答1: There are at least three or four options. You can use TCP or UDP Broadcast address Multicast address Iterate over all adresses in your