portsconsul

Different ports used by consul


What are the different ports used by consul? What is the purpose of each port? Is there any way to configure consul to run using different ports?


Solution

  • When reading the consul documentation you will find following information.

    Ports Used

    Consul requires up to 4 different ports to work properly, some on TCP, UDP, or both protocols. Below we document the requirements for each port.

    You can configure consul services to run on different ports by editing the config file. For example setting the dns interface on port 53 and the HTTP API on port 80. More details on port configuration is here.

    { 
      "ports": { 
        "dns": 53,
        "http": 80
      } 
    }