Web Application works locally - 504 error remotely - asp.net

I have a site (ASP.NET WebForms) hosted on IIS7. I have a static IP. My router is pointed at the right computer IP on my network. And the site works fine both on the server and on computers on the same network when I go to the interal IP of the server. However, when I try to access the site remotely via the static IP or the domain name, I get a 504 timeout error.
I have absolutely no idea where to begin, because the 504 error gives me no information as to what the problem is. Port 80, which is the port this is on, is open for inbound firewall rules... It wasn't for outbound, but I opened that to test it, and it still didn't work.
Other than that, I'm out of ideas. Any help is much appreciated!

It means you have deployed your web at your home. When you are trying to call at Intranet using the domain name or static IP address your are able to do so, but when your try to access on Internet you cant.
The solution which I can see for that is because on Internet, It dose not recognize your static IP address you need to pass your dynamic IP of your ISP.
Go here this will tell your IP information something like : 202.147.18.194 and instead of passing your static machine IP pass this IP when you are trying to access over internet. The URL of your web would be something like this:
"http://202.147.18.194/MyWeb/index.asp"

Related

Can't access some websites using their IP address

I have windows 10.
To get the IP address of some website I type ping somewebsite.com in cmd.
For example if I say ping google.com, cmd shows Pinging google.com [216.58.206.206] with 32 bytes of data: and some lines after that. If I type that IP provided (216.58.206.206), that gets me to Google.
But some websites aren't like this. For example for website codeforces.com I get 213.248.110.126, but this doesn't get me to the website, instead shows some error 404 Not Found .
Why it doesn't work and what is the best method to get IP addresses of websites in Windows 10?
Thanks.
Some websites cannot be accessed by IP only.
Think for example, a public (free or paid) web hosting, with shared IP. If you doesn't provide a domain name (FQDN), then the server doesn't know what page needs to be served.
Think also on some "public" services, like Azure DevOps. They provide you a FQDN over a microsoft domain, but probably each DevOps repository doesn't have their own IP. If you only provides the IP, then the service doesn't know what page are you requesting.
Also, if you enter to an HTTPS page, the certificate are securing the domain name, not IP address. If you try to enter with IP only, your navigator tells you the page are not secure (Try it with Google for example).

web application not work via internal domain

I did search online and found some similar posts but didn't resolve mine.
Here is my issue:
It's a asp.net web application running on IIS7
It has an internal domain name like xxx/yyy(xxx stands for the server name, and yyy is the application name on IIS), a full domain name like xxx.company.com/yyy(visible from external internet) and ip address like 192.168.000.000/yyy
Right now it could be visited properly from its full domain(xxx.company.com/yyy) and from its ip address, but not be visited properly from its internal domain name(xxx/yyy). More ridiculous, only some computers have the issue but some not, they are all using ie11...
Then in command window, I could ping its internal domain address, with correct ip reply.
Any suggestion?
Thanks in advance!

website Hosted on Ec2 not responding, what happened with My instance?

On Friday I hosted a WordPress site on my micro instance - I installed LAMP stack, and WordPress on it.
Instance state is Running, but when I try to access website with public domain given in console, it says
web page Not available
I have set an Outbound rule to allow everyone and Inbound rule for my IP address only.
This is about accessing website from outside world, but when I try to connect to my instance with JAVA Interface, MindTerm Web SSH, it says
Network connection timeout error
Can't figure out anything, Just started working on AWS.
I think you have confused the Outbound and Inbound rules - Outbound means traffic going out from the server, while Inbound means traffic from the internet to the server.
As you say, you added an Inbound rule for your IP address only, and you can access the website from you IP only, just like you requested.
Add an Inbound rule for port 80 for0.0.0.0/0, and you should be able to access the site from other locations as well.
If you need to open it to HTTP and SSH, open it for both for 0.0.0.0/0:
Please verify your settings and permission based on this :
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html
You might also want to check your firewall, in case that is blocking the access..

Error due to difference between localhost and local IP address

I have visited to this link and got to know about the differences between localhost and localIP address.
I have got problem saying Access is denied while accessing my own asp.net api hosted
in my local IIS server with the following url
http://172.18.12.166/FinalApi/api/movie.
It works finely if I use following url to access the api
http://localhost/FinalApi/api/movie
In the console of browser the request can be visualized as
This means the request is completed with no error. But this returns no data if I use localIP address in case of localhost.
But this works finely while requesting from other computers on the same network.
Look for host file at the following location on your system:
C:\WINDOWS\system32\drivers\etc
in that change the mapping of localhost (by default it would be 127.0.0.1). Change it to map to your IP. Then set up the you website in IIS server as per IP address.
Hope this helps.

use local machine IP address to test website on local machine

Hi i am developing a website and want to test it on local machine
the flow is like this:
A -- my website
B -- third-party website
From A a request is sent to B with a url eg: http://mywebsite/abc.aspx which is a url on which B reports success or error.
so i need to define the url to report to
for this i need to give a absolute url or path.
thats why i cannot test it on local machine and have to upload it and test it.
but this doesn't allows me to track down errors and debug it.(through break points.)
so i am trying to get the local machine address like "http://123.456.7.8/abc.aspx"
but doesn't seems to work.
my pc is running on windows xp and is connected to router and my pc is in a network and i think that's why gets a dynamic IP.
have also tried public ip address but no luck.
any work around or help for this.
I believe you're trying to get an external website to contact your local PC. Your local PC is behind a router and getting a private IP from your local router.
You'll need to supply the external website with an address that has the external IP of your router and configure your router to forward incoming requests to yuor PC.
i.e. to forward port 80 on the router to port 80 on your XP machine.
Thus when the external website, tries the contact http://1.2.3.4/abc.aspx it will talk to your router, that will then pass ("forward") the request onto your PC at e.g. http://192.168.0.1/abc.aspx.
I believe You can try to use your Machine name.
You can set up a local DNS server or simply utilize hosts file, to cheat your web browsers. For example, register test.com to your machine's IP address, and then you can use http://test.com to access IIS default web site (or your web site on IIS if you configure it for the default URL).
http://en.wikipedia.org/wiki/Hosts_%28file%29
This is a typical approach to test out web application locally.
try hosting your website on IIS and then give fix IP to your system and try to access it with your IP. Another thing is get your global IP (you can check it from Whatismyip.com ) and set it in your binding in IIS for getting request to it from across the internet.

Resources