# 直连服务器

如果服务器设置为私人模式且未显示在服务器列表中，则可以通过以下方式从控制台直接连接到该服务器：

1. [打开控制台](https://r2northstar.gitbook.io/r2northstar-wiki/chinese/commands#opening-the-console).
2. 输入 `connect <服务器ip地址>:<服务器端口号>`. 默认端口号为 `37015`.

如果你使用的是原版的泰坦陨落二客户端 (只有服务器启用 `ns_auth_allow_insecure 1` ）时才会生效:

1. 打开Origin，在游戏库中点击Titanfall 2，然后点击设置的图标。
2. 点击 `游戏属性` ，然后点击 `进阶启动选项`.
3. 添加 `+bind "按键" "connect <服务器ip地址>:<端口号>"`
4. 打开游戏并选择单人剧情
5. 按下你在第三步中设置的 `按键`&#x20;


---

# 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://r2northstar.gitbook.io/r2northstar-wiki/chinese/using-northstar/direct-connect.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.
