title: How to access raspberry.local in my android application?
body: <p>I am running Django on my raspberry-pi, and I am using <strong>avahi-daemon</strong> to access my rpi on <strong>raspberrypi.local</strong> . On my Django I have made APIs for my android application to access via HTTP protocol. For example one of my http request url is:  <code>http://raspberrypi.local/api/getUserNames/</code></p>
  
  <p>The problem is that android is not accessing this url on my local wifi network, i have confirmed that my android device and rpi are both connected to same wifi network, but still the <code>http://raspberrypi.local</code> is not working on android. While it works fine on my PC &amp; MAC.</p>
  
  <p>I tried to find the solution and went through many Q&amp;A explaining about bonjour, mDNS, jmDNS, android-multicast. But all are either too confusing to implement or doesn't work. Please help me, I'm stuck for a while.</p>
  
  <p><strong>NOTE:</strong>  on my Rpi the avahi-daemon is broadcasting itself as <em>"_workstation._tcp." service-type</em></p>
  
  <p>--</p>
  
  <p><strong>My Solution:</strong></p>
  
  <p><a href="http://www.dodgycoder.net/2015/02/setting-up-bonjourzeroconfmdnsnsd.html" rel="noreferrer">http://www.dodgycoder.net/2015/02/setting-up-bonjourzeroconfmdnsnsd.html</a></p>
  
  <p>Android NSD (Network Service Discovery) solved my problem. I used only Discovery Listener and Resolve Listener to solve my purpose.
  I specifically used <code>SERVICE_TYPE = "_workstation._tcp.";</code> in order to search for raspberrypi.local with <em>avahi-daemon</em></p>