I have a website hosted on IIS for windows server, working through localhost, local IP and hostname.
this server has a public IP.
i hosted another website on the same server and IIS that is working when browsing through localhost and local IP, but when i try to browse it using the public IP, it is not working.
when i put the public ip only (without the port in bindings) in the browser i get the default IIS page, when i add the port to it, it doesn't work and throws
PUBLIC IP took too long to respond
what am i missing?
Related
I have created a vm using azure.microsoft.com
I have installed IIS it is working in localhost,
how do I remotly access the iis by public or private ip address ?
Currently I have a https website setup locally on the Azure VM
with a custom hostname : <websitename>.<domainname>.com and bound to the localhost 127.0.0.2
in the hosts.etc on port 443
Consider example hostname as web.microsoft.com
Website bindings in IIS are
type:https
hostname:web.microsoft.com
port:443
IP Address:127.0.0.2
Hosts.etc
127.0.0.2 web.microsoft.com
In order to access it locally on the VM itself https://web.microsoft.com/admin/login.aspx works fine.
Port 443 is open on the Azure VM and inbound firewall rule is set in windows to allow connections on 443
If I try to access it outside of the network using the public IP address this doesn't work
eg https://45.60.200.110/admin/login.aspx.
I have other non-https websites which work fine and can be accessed through the public IP ,only difference is they are not having hostname in the IIS website bindings.
Am I missing something or do I need to make some additional config?
That's the problem.
The customized hostname cannot be accessed through the external network. Because the public network does not know this hostname, nor does it bind the hostname to your IP.
For example, you can enter other custom host names at will in the browser, and you will find the same error displayed.
The solution is that you need to purchase an available public domain name from the domain name provider and bind it to IP address.
If you insist on using custom domain name, it can only be used on the internal network. In addition to the configuration made on the server side, it is also need to add the host name and IP address in the hosts file of the client machine.
45.60.200.110 web.microsoft.com
I have a server hosted on Azure. I have installed IIS on this server. I have created a basic website. I am able to see the website when i use localhost or the private IP address. I am not able to see the website when I use the public IP address provided by Azure. I have not configured this server in any other way, other than to ensure that port 80 is open in the firewall. Any ideas why can't view the website from the public IP address or a different machine?
Thank You
Any ideas why can't view the website from the public IP address or a
different machine?
If you create your VM in ARM module, We should open the port 80 on NSG(add port 80 to inbound rules), and open the port 80 on windows firewall. More information about NSG, refer to the link.
If you create your VM in ASM module, we should open the endpoint 80 on the old portal. More information about endpoint, refer to the link.
I have a REAL IP. XXX.XXX.XX.XXX, with that, i have DNS, Subnetmask, gateway and secondary dns from my ISP provider.
I have connected my PC (windows 10) with that setting in TCP/IP v4. And network is fine for outgoing.
Now I build a simple html web site and created a site in IIS 10. in Binding, I used the REAL IP, with port 80. From that pc, after hitting the IP Address, I am getting into the site. But from outside the network, via internet, If I hit the IP, nothing comes except Problem loading page with respond timeout.
How can I access the IP from outside internet?
I want to host a site on local IIS 7.5 for internal testing. But I want people can access over the internet.
For this on my rackspace server, I have created an "A" record with subdomain.domainName.com and pointed my static IP address to it.
In IIS I have created a self-signed certificated with *.domainname.com that it can be used to multiple sites.
Now, i have published a site to a local directory and in IIS I have created a site with host name the same domain for which I have created an "A" record.
I have added http and https bindings with port 80 and 443 with the same host name.
But still my site is not working.
The error I am getting is "This webpage is not available"
Can any one help me?
Resolved it my self.
I was missing Port Forwarding in my router software for HTTPS.
In my web-application, each HTTP request is automatically be converted to HTTPS. And I forgot to forward Port 443's request to the machine to which I have set the static IP Address and DNS.
After adding that port forwarding record to the router's software my application is working fine over internet.