简体   繁体   中英

Accessing IIS Hosted website from different machine using IP Address and Port

I have hosted an ASP .NET MVC website on IIS 7 on a machine, I have bounded the site with IP Address and Port and I can access it from that system by using http://[IP Address]:[Port Number], to get access from another system I have added a rule in Windows firewall as mentioned in this link .

But after completing the process I am still getting "The site cant be reached" error,

I've tried different solution including giving Full control permissions to All Groups and user names as mentioned in following screenshot but still cant get access to website.

在此处输入图片说明

I've searched alot on internet but couldn't get any effective solution.

Few questions and suggestion that will help you in isolating the issue further.

  1. Does the application come up fine when you browse to it over localhost and IP address directly on the server ?

  2. Look into IIS logs and see if the requests are even reaching IIS and share the status code here. Default Location - C:\\inetpub\\logs\\logfiles\\w3svc_websiteID

  3. Stop your website in IIS. Create another website at port 80 and add a simple HelloWorld.html page and see if it comes up fine over localhost and also by accessing it from a client machine using IP address of the machine.

  4. If step 3 works and the sample website works fine, then change the port of the sample website to the non-working one.

  5. if step 4 fails, you need to concentrate in opening the port. You can also verify if the port is open or blocked by using a tool called PortQueryUI - Download it here

Let me know if you have any follow up questions.

Seems like it was an issue with my IP address which was dynamic, In beginning I tried and assumed that I've configured the static IP successfully but unfortunately couldn't. Now we are going to buy a static IP for our Website.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM