Benji Kok
Benji Kok

Reputation: 332

Can't open Azure VM Port

I'm trying to open port 8080 on an Azure VM so that I can access SSAS through Power BI from my local computer. I have added an inbound rule to the network security group on azure portal as per https://learn.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal and I've also added an inbound rule on the firewall of the VM itself.

However, when I go to canyouseeme.org it can't see port 8080.

Any ideas what I'm doing wrong?

Upvotes: 1

Views: 13971

Answers (4)

Yogesh Patil
Yogesh Patil

Reputation: 181

1)Go to VM & open desired port in local firewall setting

Control Panel\System and Security\Windows Defender Firewall

click link -Advanced settings->Inbound rules ->New Rules

select Port option and add your desired port

2)Also On azure, In VM networking, whitelist the port

3 ) netstat -ant|findstr

Above steps worked for me.

Upvotes: 0

Vijay B
Vijay B

Reputation: 332

You also have to make sure that the firewall running on the virtual machine itself is disabled, or allows the specific ports you are interested in.

See here: https://wiki.u-gov.it/confluence/display/SCAIUS/How+to+disable+firewall+inside+a+linux+virtual+machine

Upvotes: 1

Benji Kok
Benji Kok

Reputation: 332

The solution was to redeploy the VM after opening the ports on the Azure portal.

Upvotes: -4

Shui shengbao
Shui shengbao

Reputation: 19225

According to your description, I suggest you could check as the following steps:

1.Check Azure VM NSG, port 8080 should be open.

enter image description here

Note: The link you provided is open port on Vnet subnet, You also need open port on VM's nic.

2.Open port on your VM's Windows Firewall.

3.Port 8080 should be listening on your VM. You could use netstat -ant|findstr 8080 to check it. If it is not listening, maybe you need check your configuration. This link maybe helpful.

Note: The port should listen on 0.0.0.0. If it is listening on 127.0.0.1, it only could access inside VM.

Upvotes: 2

Related Questions