# 포트 번호 추가 방법

템플릿을 활용하여 웹 애플리케이션 또는 특정 서비스를 실행하려는 경우, 외부에서 접근할 수 있도록 사전에 포트 번호를 설정해야 합니다. 포트 번호를 등록하지 않으면 HTTP 접속이 제한될 수 있으므로, 서비스 목적에 따라 사용하는 포트를 반드시 추가해 주세요.

***

1. **머신 대여 페이지**로 이동합니다.

<figure><img src="/files/Yt8X1fBssMvwGREihyMh" alt=""><figcaption></figcaption></figure>

2. 템플릿 선택 단계에서, 사용하려는 템플릿의 우측 하단에 있는 \[**정보 보기**] 버튼을 클릭하여 세부 정보를 펼칩니다.

<figure><img src="/files/szgMsUHgxamRiE1cdoEP" alt=""><figcaption></figcaption></figure>

3. 펼쳐진 정보 하단에서 \[**수정**] 버튼을 클릭한 뒤, **컨테이너 내부에서 노출할 포트 번호를 추가**하고 \[**저장**]합니다.

<figure><img src="/files/pqmek8bCBqs7Xt7D60RY" alt=""><figcaption></figcaption></figure>

4. 포트 설정이 완료되면 \[**대여**] 버튼을 눌러 머신을 실행합니다.

<figure><img src="/files/FRaOhnDdbGVWe7BBejMf" alt=""><figcaption></figcaption></figure>

5. 대여가 완료되면, 대시보드에서 \[**SSH/WEB**] 버튼을 클릭하고 나타나는 모달에서 \[**HTTP**] 탭을 선택합니다.

<figure><img src="/files/WkuYEtXUfQShc1Lz7BD8" alt=""><figcaption></figcaption></figure>

6. HTTP 탭에 표시된 **접속 주소(URL)** 를 클릭하면 새 탭이 열리며, 등록한 포트에 연결된 웹 서비스 화면을 확인할 수 있습니다.

<figure><img src="/files/F0DHr87FLeCwOdklP9aS" alt=""><figcaption></figcaption></figure>

해당 주소값이 실제 외부에서 컨테이너 내부의 9999와 통신되는 주소값입니다.


---

# Agent Instructions: 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://runyourai.gitbook.io/userguide/tutorial/undefined.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.
