Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have written a Web API and hosted in iis 6 in windows 10 system.
I am using .NET v4.5 as Application Pool.
I have written
<compilation targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
in <system.web> in web config file.

I have placed the published files in inetpub/wwwroot folder. In iis the folder has appeared in Default Website and converted to the application.

when i browsed the application from iis the it is working fine.

But when i am accessing with ip address then it is showing as cant reach this page.
It is the public ip address and when i ping the ip in command prompt it is working fine and i am able to connect to the sql server in that system using the ip address from the system.

What I have tried:

I have tried the below steps.

1. I have uninstalled and again reinstalled the iis in the system.
2. Uninstalled .net framework then installed the iis first and reinstalled the .net
framework.
3. In windows features enabled all the check boxes in Application Development Features
under internet information services.
4. Tried enabling the Internet Information Services Hostable Web core in windows
features.


Nothing works for me.
Can someone help me with this.
Posted
Updated 1-Jan-20 21:17pm
v2
Comments
Kornfeld Eliyahu Peter 2-Jan-20 3:12am    
Are we talking about a page inside you hosted application?
From where you can not reach it?
Member 13142345 2-Jan-20 4:19am    
I have hosted the webapi application in the cloud server and accessing that application from the local ..

1 solution

Allow the port the Website is using from windows firewall.
 
Share this answer
 
Comments
Member 13142345 2-Jan-20 4:21am    
yes i have tried it.

I have hosted the application in the cloud pc and accessing it from the local pc..

when i have checked in the cloud pc i can able to access the application using localhost.

but when i tried to access the application using the ip then it is showing the error .
tninis 2-Jan-20 4:25am    
Check this

https://serverfault.com/questions/363823/how-do-i-get-iis-working-and-accessible-outside-my-network-behind-a-router

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900