question

GVS avatar image
0 Votes"
GVS asked AndreasBaumgarten commented

How to check specfic port is in listening state or not and also how to make port to be in listening state

How to check specfic port is in listening state or not and also how to make port to be in listening state

azure-virtual-machines
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @GVS ,

does the provided answer work for you? Are there any additional related questions?

If you found the answer helpful, it would be great if you please mark it "Accept as answer". This will help others to find answers in Q&A


Regards
Andreas Baumgarten

0 Votes 0 ·

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @GVS ,

if you want to test if a TCP port on a public IP is listening you can try this:
https://ping.eu/port-chk/

If the port is not available there are a few things to check:

  • Is the port listing on the VM at all (depends on OS, service, config of VM, the service is bound on the IP/port of the VM)

  • Is the OS firewall allowing/blocking inbound communication on this port

  • Is a Network Security Group (NSG) associated with the VM or the subnet the VM is connected to. If so, is there a NSG rule configured for inbound communication on this port


(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

Regards
Andreas Baumgarten


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.