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

GVS 146 Reputation points
2021-03-29T07:45:09.197+00:00

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
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,376 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andreas Baumgarten 117.9K Reputation points MVP
    2021-03-29T10:41:27.597+00:00

    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

    0 comments No comments

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.