Can not access second website on azure virtual machine - azure

I am hosting two web applications on IIS server on Azure Virtual machine (classic), But I am unable to access the second application by url.
I have two websites- One is hosted on port 80 and other is hosted on port 8081.
I am able to access the site one using - http://abc.cloudapp.net, but can not access the second site as http://abc.cloudapp.ne:8081. I have added the both endpoint for VM.
Locally I am able to access both sites using url- http:://localhost and http://localhost:8081.
Can any one help me?

You must also open port 8081 on the local VM firewall. On the server from PowerShell.
PS C:\> New-NetFirewallRule -DisplayName "Open Inbound Port 8081" -Direction Inbound –LocalPort 8081 -Protocol TCP -Action Allow
ref: https://technet.microsoft.com/en-us/library/jj554908(v=wps.630).aspx

Related

Unable to access server hosted on VM via https

I have a server running on ubuntu installed on azure vm. I am able to access the server via http, however when I am trying to connect via https, I am getting error: ERR_CONNECTION_REFUSED
I have added inbound rule to allow port 443, but still I am facing the issue.
To secure the websites on azure VM, you need to inject the SSL certificate into the VM and configure your web server with a TLS binding. Read this Tutorial: Secure a web server on a Linux virtual machine in Azure with TLS/SSL certificates stored in Key Vault. Also, you need ensure the port 443 is allowed in the inbound firewall of Azure VM.
When you have done it, you can check if the port 443 is listening on the Azure linux VM via netstat -tulpn | grep LISTEN, see How to check if port is in use on Linux or Unix
Let me know if you have any question.

How to Make Website Site visible over the internet on port 8080

I have IIS Installed on Azure VM with one Website running on PORT 80 which is exposed over the internet via the following Azure Firewall Role
if I try to bind incoming traffic on any other port that is not PORT 80, for some reason the Firewall doesn't seem to allow it.
for Example, if have a website running on PORT 8080 and I try to Set Firewall roles from EXTERNAL IP to the Internal IP via PORT 8080... the Website is unreachable.
If the website runs on PORT 80 and the Firewall Role is via PORT 80.. than the site works.
does anyone have any idea/suggestions?
I would like to be able to Expose websites over the internet from the Same Web Server using different PORT for each one.
I've found the answer to my problem via this URL:
https://manage.accuwebhosting.com/knowledgebase/2886/How-to-configure-IIS-to-access-website-using-IP-address.html
Basically After create Inbound Firewall Role from Azure on port 8080, the next step is to Add in Windows Firewall a New Role to allow Incoming HTTP traffic via port 8080 or any other port that the Wibsite is binding.
hope this will help others.

Azure Virtual Machine not accessible after RDP port changed

I've changed RDP port to 8080 in registry on my Azure Virtual Machine (Windows Server). Now it is not accessible from outside, I cant connect it.
Azure VM is managed by Resource Manager (not Classic VM).
UPDATE:
Turning secuiruty rules so allow all not helped.
I've changed RDP port to 8080 in registry on my Azure Virtual Machine
(Windows Server)
We can use CustomScriptextension to check if RDP listening on port 8080.
netstat -ant | findstr "8080"
If your port not listening on Port 8080, we may need to restart RDP service.
If RDP listening on port 8080, we can use CustomScriptextension to disable windows firewall.
netsh advfirewall set allprofiles state off
About Extension, we create a ps1 file with the command, and upload it via Azure portal.
Azure has to know to allow traffic through to your VM. By default, on a Windows VM, only RDP is open. But you (for some reason) changed the RDP port in Windows Server. You need to do this with the network interface as well, via the VM settings (which has nothing to do with Windows itself):
Via Settings, go to Network Interfaces
Select your network interface and go to Network Security Group
From network security group, add an inbound rule for port 8080 (or modify the existing RDP rule to be port 8080).
It used to be possible to change your RDP port in Classic portal using endpoints. but in RM portal you cannot change your RDP port.
If you are trying to secure your box or by pass the security firewall to connect to your box, I recommend using Azure Load Balancer NAT rules, you can create a NAT rule to translate a custom port to 3389, and then you can only allow connectivity from LB to your VM, this a trick I use when I want to by pass the corporate's firewall, for example port 443.
Make sure you attach the LB to your VM from the NAT rule section
To access any port from public ip client -
Enable port in Azure firewall (if installed)
Enable Port in Network Security Group (add inbound rule) rule like 8080 -> 8080 or rule like 80 -> 8080
Enable Port in Windows Firewall of VM (on azure) -- most important if port is other than 80 and 443. - e.g. 8080, 8090 etc..

Not able to access application hosted on Linux VM on Azure cloud

I have created a CentOS 7.1 VM using Resource Manager deployment model.
I am not able to access the application using a browser on a machine connected to internet.
However I am able to access the application on same machine and other VM on same virtual network using private IP address.
I configured Network Security Group and allowed port 80 and 443 in Inbound Rules.
Well, it turned out that I needed to open ports under "Inbound Security Rules" and needed to open all in "Source Port Range". For doing so, i needed to put * there and in Destination port for https - 443 etc.
This * thing was the catch which i was missing in all the Inbound security rules for allowing the ports.

Jira setup on Azure VM

I started with a Large VM running Win2008R2....I have JIRA setup and working from the localhost:8080 as well as NAME.cloudapp.net:8080 when on the VM.
I have set the endpoints on the VM for HTTP to 8080 and 8080.
How do I open the VM or subscription so outside browser can goto NAME.cloudapp.net:8080 and get the JIRA instance?
You probably need to open port 8080 on the Windows Firewall on your VM. You could use PowerShell or the Firewall App in Windows to make this change.
On the management portal, click on the VM, then choose endpoints and add give a custom name and 8080 as the public port and 8080 as private port

Resources