7

I'm looking for a way to find all devices (especially printers) in the local area network (LAN).

Is there are way to differentiate between printers and other devices (smartphones, laptops, computers, etc.)?

jAC
  • 5,195
  • 6
  • 40
  • 55
  • 3
    try looking at this question: [http://stackoverflow.com/questions/3717332/android-find-upnp-devices-from-network](http://stackoverflow.com/questions/3717332/android-find-upnp-devices-from-network) – thepoosh Apr 25 '12 at 07:23
  • Do you want to do service discovery or would you just like to see available network endpoints on the local network? – ldx Apr 25 '12 at 08:14

2 Answers2

2

What if you try this? http://jmdns.sourceforge.net/

JmDNS is a Java implementation of multi-cast DNS and can be used for service registration and discovery in local area networks. JmDNS is fully compatible with Apple's Bonjour.

Lee
  • 3,996
  • 3
  • 33
  • 37
1

you should use Network Service Discovery

https://developer.android.com/training/connect-devices-wirelessly/nsd.html

Amos
  • 2,222
  • 1
  • 26
  • 42