> For the complete documentation index, see [llms.txt](https://docs.pentest.ws/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentest.ws/getting-started/adding-ports-to-hosts.md).

# Adding Ports to Hosts

From the [Host Page](/hosts-and-services/host-page.md), click the *Add Ports* button in the *Ports* section.

![](/files/EFgUgcGuQd1l1h5Mc0RI)

**Example URL:** <https://pentest.ws/e/{engagement.id}/host/{host.id}/port/add>

![Add Ports](/files/5qZxxntjhDfuE0o8bcO2)

The *Add Ports* screen lets you quickly add ports to a Host using the following template:

`portNum[:protocol][/service]`

Separate multiple ports with a comma. Manually added ports are set to the Open port state.

## Examples

**Port Numbers:**\
`21, 25, 80, 139, 443, 445, 3389`

**Port and Service Names:**\
`80/http, 443/https`

**UDP Ports:**\
`53:udp/dns`

## Tier Availability

**Adding Ports** is available on all tiers.


---

# 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:

```
GET https://docs.pentest.ws/getting-started/adding-ports-to-hosts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
