0

I'm running a WebAPI project locally which I would like to access from a mobile device connected on the same network.

I have tried all the steps here (where tower is my hostame) but it's not working:

There are three changes you might need to make.

Tell IIS Express itself to bind to all ip addresses and hostnames. In your .config file. Typically:
VS 2015: $(solutionDir)\.vs\config\applicationhost.config

Find your site's binding element, and add

    <binding protocol="http" bindingInformation="*:8080:tower" />

Setup the bit of Windows called 'http.sys'. As an administrator, run the command:
    netsh http add urlacl url=http://tower:8080/ user=everyone

Allow IIS Express through Windows firewall.
Start / Windows Firewall with Advanced Security / Inbound Rules / New Rule...

Program %ProgramFiles%\IIS Express\iisexpress.exe
OR Port 8080 TCP

Locally everything is working fine:

enter image description here

However on mobile - I am getting an error:

tower's server DNS address could not be found.

ERR_NAME_NOT_RESOLVED

Does anybody know why this might be happening - have I missed something obvious?

TomSelleck
  • 6,706
  • 22
  • 82
  • 151
  • This is not related to your IIS setup. It's that whichever DNS server your *mobile device* is using, it doesn't resolve `tower`. – spender Nov 30 '17 at 12:33
  • Do I need to add a mapping on my router or something similar? – TomSelleck Nov 30 '17 at 12:35
  • Probably, but given that this is not programming related, you should really be asking this at https://serverfault.com – spender Nov 30 '17 at 12:36
  • Possible duplicate of [IIS Express enable external request](https://stackoverflow.com/questions/3313616/iis-express-enable-external-request) – Andrei Dragotoniu Nov 30 '17 at 15:42

1 Answers1

0

It most probably means that "tower" has no DNS correspondance so you either need to use the IP address or add the proper DNS entry.

albator1932
  • 63
  • 2
  • 7