Hello!
I am trying to publish a web asp.net application to IIS 8 and allow external access from other devices in the local network or in other networks to this web app, but it seems i can't get this to work.
These are the steps i did:
1) I created a wep api application using the wep api template in visual studio with the autogenerated controller
2) I've edited the IISExpress applicationhost.config file and changed the binding from http://localhost:44303/ tohttp://www.mywebsite.net:8080/
3) I've changed the Project Url in Visual Studio to http://www.mywebsite.net:8080/
4) I've edited the windows hosts file adding these entries:
127.0.0.1 mywebsite.net:8080/
127.0.0.1 http://mywebsite.net:8080/
127.0.0.1 www.mywebsite.net:8080/
127.0.0.1 http://www.mywebsite.net:8080/
so now it can resolve www.mywebsite.net:8080 to localhost
5) I've published the web application from Visual Studio to c:\publish folder
6) In IIS Manager i've created a new website (name="mywebsite", port=8080, protocol=http, path=c:\publish)
7) In an elevated prompt i've used this command:
add urlacl http://www.mywebsite.it:8080/ user=Everyone
8) In windows firewall i've added an inbound rule for tcp port 8080 to accept all connections
Ok, so with all these steps i thought that i should be able to connect to www.mywebsite.net:8080 from another device like ipad or another computer in the same network, but it doesn't work.
Anyone can help me to get things working? I also would like to learn how to give access also from public networks and not also in the local network.
Thanks in advance for any help!