Load balancer not forwarding port

Mohammed Abdulrahman 6 Reputation points

Basically I have a load balancer > NAT > NSG > VM. I allowed port 8000 from all sides LB, NSG and VM. Even when using the tool it says "It seems that your backend resources are responding on all configured ports".

However, once trying to connect to that port and even using online tools to check if that port is open. It shows it as not open even though I had copied the same way that SSH forwarding was enabled. Does anyone know why it fails on port 8000? Perhaps I missed a step or something?

This image shows the NSG attached to the VM, which I had allowed port 8000 and 22. This is only for a test environment.

This image shows the VM allowing and having an application running on port 8000.

This image shows when trying to troubleshoot the Load Balancer with the port 8000 NAT rule it says that were no problems (this did take a long time)


The image below shows the NAT rules for the load balancer, one of these I am using for using a different port for SSHing to the virtual machine and it works fine. But the one for port 8000 doesn't work.


Checking with an external tool to check if the port is open and only the one I am using for SSH works but the one for 8000 doesn't.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,384 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
414 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Mohammed Abdulrahman 6 Reputation points

    This has been resolved, I thank everyone who took their time and helped me. The lesson learned here is to know which VM you are working on and especially when you are tired at 3 am in the morning. I was working on another virtual machine all along, after I figured that out the other configuration to that virtual machine except the NAT rule because I forgot about that. I gave up on this and I came back with a steady mind.

    Then I reviewed this screenshots again and my configuration on the NAT to see that I still had it on the wrong virtual machine. Now it works :).

    1 person found this answer helpful.

  2. Martin Meiner Tästensen 456 Reputation points

    Okay, i will try - but please bear in mind that I am in no way, shape or form a linux expert.

    But if i recall right, a linux (debian atleast) creates two different interfaces, a loopback interface which is (itself) and a eth0 which is the internal IP address of the server (eg.

    In your picture, it is open for port 22 on which I would suspect being all interfaces, but the port 8000 is "only" for

    Again, i'm not a linux expert, but could the issue be that the port is only listening on the loopback interface?