Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a site running under IIS Express, I added the following to my applicationHost.config

<binding protocol="http" bindingInformation="*:49223:localhost" />
<binding protocol="http" bindingInformation="*:49223:myMachineName" />

So now, from another laptop on my local wireless network I can hit http://myMachineName:49223/ and see my site without issue.

However, if I hit the same URL from an android device (tried on Galaxy S and Galaxy S2) on the same local wireless network I get the standard android Web page not available.

How can I hit my iis express site from my android devices? Any suggestions for debugging this issue gratefully recieved :(

share|improve this question
    
Please don't cross-post. –  user19086 Dec 16 '12 at 17:15
    
Okeydokes :) So what to do then when your question is relevant in more than one SE? –  gingerbreadboy Dec 16 '12 at 21:01
    
Please do read this: meta.stackexchange.com/questions/64068/… –  Power-Inside Dec 17 '12 at 16:07
add comment

1 Answer

up vote 1 down vote accepted

What you experience stems from lack of native NetBIOS/NetBT support.

When your windows computer is trying to resolve single label names, one of the steps is to issue a broadcast request for the particular name, and see if any nodes in the local subnet answers to that name. The resolution sequence goes something like this:

  • Try to resolve using the hosts file
  • Try using WINS
  • Try issuing NetBIOS broadcast
  • Default to DNS name resolution

In Android, name resolution goes like this:

  • Try to resolve using the hosts file
  • Default to DNS name resolution

So you would probably have to add an entry to the hosts file on your phone to make it work.

The Android hosts file is located in /system/etc/hosts (sym-link /etc/hosts). AFAIK you'll need root access to edit/overwrite the hosts file

share|improve this answer
1  
Once rooted, i used this to edit the host files play.google.com/store/apps/…. and then all was well. –  gingerbreadboy Dec 17 '12 at 16:55
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.