# proxy-protocolについて

### Proxy-Protocolとは

Nohit.ccで推奨している、proxy-protocolとは、プレイヤーのIPアドレス等の接続情報を転送するためのプロトコルです。TCP(Java版)では常に有効化されています。 UDP(統合版) ではオンとオフどちらも選択可能です。

### 使い方について

#### BungeeCordの場合

`config.yml`の`proxy-protocol: false`を**true**に変更し、再起動します。。ここでの詳細な説明は割愛しますが、別にproxy-protocolオフのリスナーを作成することも可能です(メンテナンス時などに重宝します)。

<figure><img src="/files/Whw42eBUSnrFOTFGZj2j" alt=""><figcaption><p>config.yml</p></figcaption></figure>

#### Velocityの場合

`velocity.toml`の`haproxy-protocol: false`を**true**に変更し、再起動します。

#### Spigot / Paperの場合

プラグインを使用します。ProtocolLibの導入が必要です。\
JDK11以前の場合 -> <https://github.com/nohit-cc/RealIP-MC/releases/download/1/RealIP-MC-1.jar>\
\
JDK12以降の場合  -> <https://github.com/Lunac-dev/RealIP-MC-v2/releases/download/1.1/RealIP-MC.jar>\
\
上手く動作しない場合は、BungeeCordの利用を推奨しています。

#### ~~GeyserMC (統合版) の場合~~

~~`/plugins/Geyser-Spigot/config.yml` の`enable-proxy-protocol: false`を**true**に変更し、再起動します。BungeeCordやVelocity環境でGeyserMCを利用されている方も同様に、GeyserMCのconfig.ymlから設定が可能です。~~\
**UDPの提供は終了しました。(24年3月)**&#x20;

<figure><img src="/files/aqHLf6ItofOM6XkUaTjV" alt=""><figcaption><p>/plugins/Geyser-Spigot/config.yml</p></figcaption></figure>


---

# 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://docs.nohit.cc/settings/proxy-protocol.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.
