> For the complete documentation index, see [llms.txt](https://docs.vngcloud.vn/vng-cloud-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vngcloud.vn/vng-cloud-document/load-balancer/network-load-balancer/listener-nlb/add-a-tcp-listener.md).

# Add a TCP Listener

Use this guide to add a new TCP listener to an existing Network Load Balancer (NLB).

#### Steps to Add a New TCP Listener

1. **Access the Load Balancer Homepage:** Go to `https://hcm-3.console.vngcloud.vn/vserver/load-balancer/vlb`.
2. **Select Your Load Balancer:** Click on the Load Balancer where you want to add the new listener.
3. **Go to the Listener Tab:** In the Load Balancer details page, select the "Listener" tab.
4. **Click "Add New Listener":** A pop-up window will appear, allowing you to configure the listener's information.
5. **Configure Listener Settings:**
   * **Listener Name:** Note that the listener name cannot be changed after creation.
   * **Protocol & Port:** Select the TCP protocol and choose a port (the default is port 80, and it will increment if lower ports are already in use).
   * **Default Pool and Action:** In cases where requests to the Load Balancer don't match any specific pool, the NLB will redirect that traffic to the default pool.
   * **Advanced Configuration:** Refer to the guides below for advanced configuration options:
     * Configuring Timeouts
     * Configuring IP Whitelists for Load Balancers

**Important Note:** You can only select a Pool with the TCP/Proxy protocol as the default pool for a TCP Listener.

#### Additional Notes

* **Listener Names:** Choose descriptive names for your listeners to easily identify their purpose.
* **Port Selection:** If you're using the default port 80, ensure no other services are running on that port within your VPC.
* **Default Pool:** The default pool acts as a fallback for requests that don't match any specific routing rules.
* **Advanced Configurations:** Explore timeout and IP whitelisting options to fine-tune your listener's behavior.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.vngcloud.vn/vng-cloud-document/load-balancer/network-load-balancer/listener-nlb/add-a-tcp-listener.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
