Hyper-V Web Server in Windows Server 2012 Not Accessible Externally - iis

I have a Windows Server 2012 running Hyper-V which has a virtual server running Windows Server 2012. Both the physical and virtual server are connected to a domain (hosted on a separate server) and both are assigned static IPs. The virtual server is running IIS and the website is running and accessible within the network. However, I cannot see the website outside of the network. I've opened the port on the router and pointed the port to the virtual servers IP address. Any suggestions you can offer would be helpful!

I was using the wrong port. Because I have another web server running using up port 443 I had arbitrarily chose to use port 445 for the new web server and I found out that that is a reserved port. So I switched to port 8080 and opened up the port on the windows firewall and now it's working perfectly!

Related

Web server on Azure VM

I've installed a Windows 2012 R2 VM (free tier) and enabled all ports for external communication (including port 80).
I logged in to my VM and installed nginx webserver (I've also tried to python development server).
I can access the website internally on the VM (using 127.0.0.1 or the internal address of the server 10.1....) but when trying to access it from outside, using the external IP address (which is also the IP address I used in order to login to my server using RDP) I get no response.
Can you please help me understand what I'm doing wrong?
Thanks!
As #evilSnobu points out from his comments, the short answer is to allow the TCP port 80 in the windows firewall on windows VM itself.
Usually, we could login to that Windows VM and run the CMD command netsh advfirewall set allprofiles state off to disable the windows firewall temporarily. Then we can use telnet tool to check if TCP 80 port can be connected.
When we face the same issue no response outside of Azure VM. we can try one or more of the followings:
There is an NSG at the subnet level or NIC level as well which is not allowing data through.
There is a firewall on the VM itself (windows firewall etc.)
There is nothing listening on that port. It should be listening on 0.0.0.0 instead of 127.0.0.1 when you use netstat -ano in the windows CMD.
The service is not staring when you verify the port listening.
Outbound traffic with a specific port is denied from your local machines.
Hope this helps.

Access Ubuntu Server VM on Azure

I've setup an Ubuntu Server on Azure. On this server, an application is running on port 3000. I want to access this application external. Azure tells me my server has public ip 40.68.XXX.XXX.
When I ping this IP, there is no response, despite ssh works when connecting to this IP-address.
I want to access 40.68.XXX.XXX:3000 external, does somebody know how to get this work?
Yes, you need to open up a port on the Network Security Group (NSG) and open up the port on your firewall (on the VM itself).
Easiest way to open the port is using the portal:
https://learn.microsoft.com/en-us/azure/virtual-machines/virtual-machines-windows-nsg-quickstart-portal

Azure VM (ARM) external port not working

I am trying to open port 8080 in a Windows Azure virtual machine. I have a test website listening in that port, and I am able to access it via localhost, so the website is running.
I have also opened the port in the firewall and created an inbound security rule in azure portal for the virtual machine, but the port doesn't seem to be open to the outside world. I have tried accessing it both via the IP address and the DNS with the same results.
Is there anything else I should be doing?

How to connect to a server hosted on an Azure virtual machine?

I'm running a RavenDB server on a virtual machine on Azure using port 8080. I can access it on localhost:8080 when I log into the virtual machine.
I added endpoint (public: 8080, private: 8080) on manage.windowsazure.com. However, when I try to access the server remotely through some web browser, it says it can't be found.
What else should I do? I'm running Windows Server 2012 on the virtual machine.
Normally this equates to a firewall issue on the Windows Server virtual machine. Did you make sure you have a rule allowing for incoming tcp traffic on port 8080?

Windows XP exposing websites in IIS in local network

how can I expose my Website to other PC's in my local network? Say I my computer name is CompTest and I can access my websites deployed in IIS in my own machine in http://Comptest/ and http://localhost/. Is there anything I need to set so other computers in my local network can access http://CompTest/? Just within local network.
You need to enable HTTP (port 80) over TCP through the Windows Firewall (in the Control Panel).
try using your ip address rather the your host name. like http://[ip address]:[port no]/[site name]. for your info http port is 80. also do
disable firewall
use static ip
i hope this will help you

Resources