3

I have a linux vm on Azure. I opened an inbound rule for port 20212 tcp and furthermore in created a rule in iptables to allow traffic to this port.

But when i do telnet 127.0.0.1 20212 i get a connection refused error and also when i do telnet SERVER-IP 20212 i get the same error. Is there any other step in need in opening a custom port on Azure VMs

Shui shengbao
  • 18,746
  • 3
  • 27
  • 45

1 Answers1

2

There are 3 moving pieces to this puzzle:

  1. Network Security Group allowing a port
  2. Linux VM firewall allowing a port
  3. Application that is running and listening on the port

It appears that you are missing the third one.

4c74356b41
  • 69,186
  • 6
  • 100
  • 141