> For the complete documentation index, see [llms.txt](https://chainide.gitbook.io/chainide-chinese/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chainide.gitbook.io/chainide-chinese/5.-port-forwarding.md).

# 5. ChainIDE - 端口转发

{% embed url="<https://www.youtube.com/watch?t=92s&v=zsPEMBDUrGE>" %}

## 1. 运行 Sandbox

当你需要访问 sandbox 中的一个端口时

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

## 2. 打开 Port Manager

点击左侧的 Port Manager

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

点击 Add Port

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

选择相关选项，并点击 Add

<figure><img src="/files/hRQN5xDwQUelmbiBlRxM" alt="" width="229"><figcaption></figcaption></figure>

## 3. 访问转发后的端口

点击跳转键即可访问对应端口

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

<figure><img src="/files/21cTt14YTNmJtitpRuUB" alt=""><figcaption></figcaption></figure>


---

# 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://chainide.gitbook.io/chainide-chinese/5.-port-forwarding.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.
