Port 995 cannot be access from Ubuntu server in Azure

Rupasinghe 1 Reputation point
2021-06-10T01:36:00.023+00:00

I have allowed port tcp port 995 from Azure rules. But still the port cannot be accessed I guess. OS firewalls also has been disabled.
When trying to use Mailu the following error occurs:

Error starting userland proxy: listen tcp4 xx.xx.xxx.xxx:995: bind: cannot assign requested address

Talnet check gives this result

root@Monique gmx :/mailu# telnet xx.xx.xxx.xxx 995
Trying xx.xx.xxx.xxx...
telnet: Unable to connect to remote host: Connection refused

I'm new and trying to learn. This is for practicing. Can anyone help?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
668 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Fábio Barcello S.R. Müller 136 Reputation points
    2021-06-12T15:22:41.127+00:00

    You can test the port on Azure portal at your VM blade. Enter in your VM Blade, go to the bottom and select "Connection troubleshoot" . On the right panel select Service custom and port 995 then Test. If works you port is open. Otherwise check in the same blade, networking and then if there is a rule for port 995.

    105084-vmazure1.jpg105103-vmazure2.jpg

    1 person found this answer helpful.

  2. Sam Cogan 10,812 Reputation points Microsoft Employee Volunteer Moderator
    2021-06-10T08:41:56.057+00:00

    If your NSG rules are correct, and the OS firewall is not blocking requests then generally this would mean that there is nothing listening on that port on the VM. Check that the service you are trying to talk to is running.
    You should also check that there is nothing on your network that blocks outbound traffic on that port.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.