ASP.NET Website accessible locally but not from a an external IP (302 response in logs instead of 200) - asp.net

I am trying to host an ASP.NET website on IIS for a customer. I can access the website by IP/domain locally but not when using another device (another IP).
Here are all the details that are worth mentioning:
Ports are open (Checked with telnet)
Using Application Pool identity
Logs under C:\inetpub\logs\LogFiles\W3SVC2 show: 200 response for local IP but 302 response for all remote IPs.
Accessing the default IIS website works locally and remotely
Any clues why this may be happening? I already spent more than 6 hours on this so I am willing to try any guess at this point.
PS: I am totally novice when it comes to IIS and ASP.NET

Related

remote access to iis website by ip addess

I developed an asp.net mvc website and deployed it to my local IIS with success. I can access to the website by localhost:8080/site
I wanted to access the website from remote pc, I binded my website to the ip of my pc (windows 10) (the external ip with the routeur), I added a rule to the inbound calls for the port of the website with the windows firewall manager but I can't access the website remotely by the address http://ip-adress:port/website, I get timeout error.
How can I access this website
regards,
We made a VS Extension called Conveyor, you can get it from the extensions dialog or https://marketplace.visualstudio.com/items?itemName=vs-publisher-1448185.ConveyorbyKeyoti it tunnels through firewalls to allow access to your website from outside, even if incoming calls are blocked by your ISP, as mentioned in the comments.

IIS slow down client request without Internet

I have a server (windows server 2008 r2) which hosting an asp.net web application locally using IIS. I also have several client PCs connected to the network which allow client PCs to access the website locally by hostname or IP address (e.g. http:// server / or http:// 192.168.1.200 /)
My Internet connection is not stable, up and down (disconnect) quite frequent. Because of that I discovered that my web application access from client PCs is smooth (load time less than 5 secs per page) when my Internet connection is ON (connected), but on the other hand, when the Internet connection is down (disconnected), access to the web application from client PCs take around 15-17 secs to complete the page load, every pages.
I doubt that this is related to IIS itself or my configuration is wrong.
Is there anyone else having the same issue? Any fixes?
Problem resolved.
I didn't know that System.net.dns.gethostentry require Internet to work properly. So I have disable this function for my system to run smoothly now.

Make Website Accessible Online with an IIS Server and a Static IP

I have a window server 2008 with an IIS 7.0 and Static IP. The website www.xyz.com (with PORT: http:80 & https:443) is running well on it. Now, I deployed another website on it using same IP address but with Port http:180. The another website is working good locally but not accessible on web.
What are next steps to make website online?
Regards,
Aman
That should be it. If you can access it locally with http://localhost:180, then IIS is listening on the port and should be serving requests. If you are not able to access it remotely via http://the.site.ip.address:180, I would suspect that a firewall somewhere is preventing connections over this non-standard port.

Troubleshooting IIS 7

I am trying to figure out why my web page isn't displaying when using my domain name. I have a local IIS 7 web server installed with an ASP.NET web site. When I go to http://localhost, my page displays fine. When I go to http://www.mysite.com, it doesn't display though. Doing a trace route on www.mysite.com shows that it is resolving to my IP address. My router is forwarding port 80 requests to the web server and I am browsing from my phone, which is on a separate IP address using 3G. I disabled my firewall and my anti-virus to make sure neither of those are interfering. I also looked at the IIS 7 log and my request does not appear to be hitting it.
Is there a way to trace the incoming request to find out where its getting thrown out at? I'm losing my mind trying to troubleshoot this and any help would be appreciated.
Is your ISP blocking port 80? I have seen lots of ISP's do this to home users in an attempt to have them upgrade their internet package to a business plan.

IIS 7 application automatically redirecting

I have 2 servers, server A and server B. Both have IIS7 and same OS. I published through my VS2008 the same website on both servers. the problem is on one the application in IIS7 website works on the other it doesnt.
Server A - IIS7 - WebsiteA - Application (Works)
Server B - IIS7 - WebsiteA - Application (Does not work)
what are the things that i could be missing to configure IIS7 in server B ?
You need to find out what machine the IP Address is referring to.
It's possible you have firewall's, routers, and host configuration files which are effecting this.
Run a tracert to your server, and to the ip address and see where your route is going wrong.
Check you don't have multiple IP Addresses assigned to the same machine.
If you can, ask a member of your network team to help you out.
To help you more, we need to know the details of your infrastructure.

Resources