{"id":119,"date":"2026-05-12T12:04:23","date_gmt":"2026-05-12T04:04:23","guid":{"rendered":"https:\/\/gd.patchouli-go.cn\/?p=119"},"modified":"2026-07-23T17:54:34","modified_gmt":"2026-07-23T09:54:34","slug":"r-e-p-o-%e8%87%aa%e5%bb%ba-photon-server-%e9%83%a8%e7%bd%b2%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/gd.patchouli-go.cn\/?p=119","title":{"rendered":"R.E.P.O. \u81ea\u5efa Photon Server \u90e8\u7f72\u6559\u7a0b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u672c\u6587\u8bb0\u5f55\u5982\u4f55\u4f7f\u7528 <strong>Photon On-Premise Server SDK v4<\/strong> \u642d\u5efa\u4e00\u4e2a\u53ef\u4f9b R.E.P.O. \u4f7f\u7528\u7684\u81ea\u5efa Photon Server\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u5e76\u4e0d\u662f\u642d\u5efa\u4f20\u7edf\u610f\u4e49\u4e0a\u7684\u201c\u6e38\u620f\u4e13\u7528\u670d\u52a1\u5668\u201d\uff0c\u800c\u662f\u901a\u8fc7\u81ea\u5efa Photon Server \u66ff\u4ee3\u9ed8\u8ba4\u7684 Photon \u8054\u673a\u670d\u52a1\uff0c\u8ba9\u5ba2\u6237\u7aef\u8fde\u63a5\u5230\u6211\u4eec\u81ea\u5df1\u7684\u670d\u52a1\u5668\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ps\uff1a\u4e0d\u5982\u5b98\u7f51\u670d\u52a1\u5668\u4e00\u6839\uff0c\u5efa\u8bae\u81ea\u884c\u7533\u8bf7\u56fd\u9645PON\u670d\u52a1\u5668\u548c\u56fd\u533aAPPID<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u51c6\u5907\u5185\u5bb9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u9700\u8981\u51c6\u5907\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>1. Windows \u670d\u52a1\u5668\u6216 Windows \u4e3b\u673a\n2. Photon On-Premise Server SDK v4\n3. R.E.P.O. \u6e38\u620f\u672c\u4f53\n4. BepInEx \u9700\u8981\u5b89\u88c5\u5982\u4e0bmod\uff1a\n4.1 Self Hosted Photon         \u7528\u4e8e\u4fee\u6539\u670d\u52a1\u5668\u8fde\u63a5\u53c2\u6570\n4.2 PhotonV4ServerVoiceFix     \u7528\u4e8e\u4fee\u590dPhoton Server V4\u65e0\u6cd5\u8bed\u97f3\u7684\u95ee\u9898\n\n\u5982\u679c\u4f7f\u7528Mod\u7ba1\u7406\u5668\u5b89\u88c5Mod\uff0c\u5efa\u8bae\u4f7f\u7528\u6e38\u620f\u5185Mod\u914d\u7f6e\u4fee\u6539Mod\n4.3 REPOConfig                 \u6e38\u620f\u5185Mod\u914d\u7f6e\u4fee\u6539Mod\n4.4 MenuLib                    \u6e38\u620f\u5185Mod\u914d\u7f6e\u4fee\u6539Mod\u524d\u7f6e\n\u672c\u6587\u53ea\u4ecb\u7ecd\u5982\u4f55\u672c\u5730\u90e8\u7f72Photon\u670d\u52a1\uff0cMod\u5b89\u88c5\u8bf7\u79fb\u6b65B\u7ad9\u76f8\u5173\u89c6\u9891&amp;\u4e13\u680f<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u4f7f\u7528\u7684 Photon \u7248\u672c\u4e3a\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gitcode.com\/open-source-toolkit\/d8ac1\/blob\/main\/photon-server-sdk_v4-0-29-11263.7z\">Photon-OnPremise-Server-SDK_v4-0-29-11263<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5ba2\u6237\u7aef Mod \u4f7f\u7528\uff08\u5e26*\u53f7\u4e3a\u5fc5\u987b\uff09\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/thunderstore.io\/c\/repo\/p\/zyxterus\/Self_Hosted_Photon\/\">Self Hosted Photon<\/a> *<br><a href=\"https:\/\/thunderstore.io\/c\/repo\/p\/gil666\/PhotonV4ServerVoiceFix\/\">PhotonV4ServerVoiceFix<\/a><br><br><a href=\"https:\/\/thunderstore.io\/c\/repo\/p\/nickklmao\/REPOConfig\/\">REPOConfig<\/a><br><a href=\"https:\/\/thunderstore.io\/c\/repo\/p\/nickklmao\/MenuLib\/\">MenuLib<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u5b89\u88c5 Photon Server<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u8f7d\u5e76\u89e3\u538b Photon Server SDK\uff0c\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>D:\\Photon-OnPremise-Server-SDK_v4-0-29-11263<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fdb\u5165\u76ee\u5f55\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>D:\\Photon-OnPremise-Server-SDK_v4-0-29-11263\\deploy\\bin_Win64<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>PhotonControl.exe<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\u540e\uff0c\u7cfb\u7edf\u6258\u76d8\u533a\u4f1a\u51fa\u73b0 Photon Control \u56fe\u6807\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u53f3\u952e\u6258\u76d8\u56fe\u6807\uff0c\u9009\u62e9\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>LoadBalancing (MyCloud)\n  \u2192 Start as Application<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u6210\u529f\u542f\u52a8\uff0c\u8bf4\u660e Photon Server \u5df2\u7ecf\u8dd1\u8d77\u6765\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u540e\u7eed\u957f\u671f\u4f7f\u7528\u65f6\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\u4e3a\u670d\u52a1\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>LoadBalancing (MyCloud)\n  \u2192 Install Service\n  \u2192 Start as Service<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6d4b\u8bd5\u9636\u6bb5\u5efa\u8bae\u5148\u4f7f\u7528 <code>Start as Application<\/code>\uff0c\u65b9\u4fbf\u67e5\u770b\u548c\u91cd\u542f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u5f00\u653e\u670d\u52a1\u5668\u7aef\u53e3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Photon Server v4 \u9ed8\u8ba4\u9700\u8981\u5f00\u653e\u4ee5\u4e0b\u7aef\u53e3\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UDP 5055\nUDP 5056\n\nTCP 4530\nTCP 4531\n\nTCP 9090\nTCP 9091<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u4e2d\u6700\u5173\u952e\u7684\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UDP 5055&lt;br&gt;UDP 5056<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5173\u4e8e\u5982\u4f55\u5f00\u653e\u7aef\u53e3\u672c\u6587\u4e5f\u4e0d\u4f1a\u8be6\u7ec6\u8bf4\u660e\uff0c\u6559\u7a0b\u4ec5\u7ed9\u51fa\u9700\u8981\u5f00\u653e\u7684\u7aef\u53e3\u4ee5\u4f9b\u53c2\u8003<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u914d\u7f6e GameServer \u516c\u7f51\u5730\u5740<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u4e00\u6b65\u975e\u5e38\u91cd\u8981\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u5f00\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>deploy\\LoadBalancing\\GameServer\\bin\\Photon.LoadBalancing.dll.config<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u627e\u5230\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;Photon.LoadBalancing.GameServer.GameServerSettings&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u91cc\u9762\u4fee\u6539\u516c\u7f51\u5730\u5740\u914d\u7f6e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u516c\u7f51\u4fa7IP\u5730\u5740\u914d\u7f6e\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;setting name=&quot;PublicIPAddress&quot; serializeAs=&quot;String&quot;&gt;\n  &lt;value&gt;123.123.123.123&lt;\/value&gt;\n&lt;\/setting&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4fee\u6539\u5b8c\u6210\u540e\uff0c\u9700\u8981\u91cd\u542f Photon\u4ee5\u5e94\u7528\u4fee\u6539\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Photon Control\n  \u2192 LoadBalancing (MyCloud)\n  \u2192 Stop\n  \u2192 Start as Application<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u68c0\u67e5 Photon \u662f\u5426\u76d1\u542c\u7aef\u53e3\uff08\u975e\u5fc5\u987b\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u670d\u52a1\u5668\u4e0a\u6267\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>netstat -ano -p udp | findstr &quot;:5055&quot;\nnetstat -ano -p udp | findstr &quot;:5056&quot;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u5e38\u60c5\u51b5\u4e0b\u5e94\u8be5\u80fd\u770b\u5230\u7c7b\u4f3c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>UDP    0.0.0.0:5055    *:*\nUDP    0.0.0.0:5056    *:*<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u516d\u3001\u5b89\u88c5\u5ba2\u6237\u7aef Mod<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">R.E.P.O. \u5ba2\u6237\u7aef\u9700\u8981\u5b89\u88c5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>BepInEx *\nSelf Hosted Photon *\nPhotonV4ServerVoiceFix *\n\nREPOConfig\nMenuLib<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u542f\u52a8\u4e00\u6b21\u6e38\u620f\uff0c\u8ba9\u914d\u7f6e\u6587\u4ef6\u81ea\u52a8\u751f\u6210\uff0c\u7136\u540e\u9000\u51fa\u6e38\u620f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u7f6e\u6587\u4ef6\u4e00\u822c\u5728\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>BepInEx\\config\\Self_Hosted_Photon.cfg<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e03\u3001\u914d\u7f6e\u5ba2\u6237\u7aef\u8fde\u63a5\u5730\u5740<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Self Hosted Photon\u914d\u7f6e\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6253\u5f00\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>BepInEx\\config\\Self_Hosted_Photon.cfg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u7f6e\u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>## Settings file was created by plugin Self_Hosted_Photon v0.1.0\n## Plugin GUID: Self_Hosted_Photon\n\n&#091;General]\n\n## Enable or disable the plugin.\n# Setting type: Boolean\n# Default value: true\nEnabled = true\n\n&#091;Server]\n\n## The IP address or hostname of the Photon server.\n# Setting type: String\n# Default value: 127.0.0.1\nAddress = 123.123.123.123\n\n## The port number of the Photon server.\n# Setting type: String\n# Default value: 5055\nPort = 5055\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f7f\u7528\u57df\u540d\uff0c\u5219\u53ef\u4ee5\u5199\u6210\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>## Settings file was created by plugin Self_Hosted_Photon v0.1.0\n## Plugin GUID: Self_Hosted_Photon\n\n&#091;General]\n\n## Enable or disable the plugin.\n# Setting type: Boolean\n# Default value: true\nEnabled = true\n\n&#091;Server]\n\n## The IP address or hostname of the Photon server.\n# Setting type: String\n# Default value: 127.0.0.1\nAddress = www.\u4f60\u7684\u57df\u540d.com\n\n## The port number of the Photon server.\n# Setting type: String\n# Default value: 5055\nPort = 5055\n\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u5b89\u88c5\u4e86\u6e38\u620f\u5185Mod\u914d\u7f6e\u4fee\u6539Mod\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u542f\u52a8\u6e38\u620f\uff0c\u70b9\u51fbMODS<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"853\" height=\"514\" src=\"https:\/\/gd.patchouli-go.cn\/wp-content\/uploads\/2026\/05\/image-1.png\" alt=\"\" class=\"wp-image-123\" srcset=\"https:\/\/gd.patchouli-go.cn\/wp-content\/uploads\/2026\/05\/image-1.png 853w, https:\/\/gd.patchouli-go.cn\/wp-content\/uploads\/2026\/05\/image-1-300x181.png 300w, https:\/\/gd.patchouli-go.cn\/wp-content\/uploads\/2026\/05\/image-1-768x463.png 768w\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u70b9\u51fbSelf_Hosted_Photon\uff0c\u5373\u53ef\u5728\u53f3\u4fa7\u4fee\u6539\u8fde\u63a5\u914d\u7f6e\uff0c\u4fee\u6539\u5b8c\u70b9\u51fb\u4fdd\u5b58\u66f4\u6539\u5373\u53ef\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"853\" height=\"514\" src=\"https:\/\/gd.patchouli-go.cn\/wp-content\/uploads\/2026\/05\/image-2.png\" alt=\"\" class=\"wp-image-124\" srcset=\"https:\/\/gd.patchouli-go.cn\/wp-content\/uploads\/2026\/05\/image-2.png 853w, https:\/\/gd.patchouli-go.cn\/wp-content\/uploads\/2026\/05\/image-2-300x181.png 300w, https:\/\/gd.patchouli-go.cn\/wp-content\/uploads\/2026\/05\/image-2-768x463.png 768w\" sizes=\"auto, (max-width: 853px) 100vw, 853px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u516b\u3001\u6d4b\u8bd5\u8fde\u63a5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u542f\u52a8 R.E.P.O.\u8fdb\u884c\u6e38\u73a9\u6d4b\u8bd5\u670d\u52a1\u5668\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u8bb0\u5f55\u5982\u4f55\u4f7f\u7528 Photon On-Premise Server SDK v4 \u642d\u5efa\u4e00\u4e2a\u53ef\u4f9b R.E.P.O [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=119"}],"version-history":[{"count":14,"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=\/wp\/v2\/posts\/119\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gd.patchouli-go.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}