雨中冒险2 frp联机

雨中冒险2 frp联机

一、修改配置文件 这一步只需要房主操作,作用是让房主又能开服务器又能游玩。 如果不改这个文件,房主开服务器后只能黑屏观战。 编辑游戏目录下的 Risk of Rain 2 > Risk of Rain 2_Data > Config > server_startup.cfg 文件 还有其他服务器设置

一、修改配置文件

这一步只需要房主操作,作用是让房主又能开服务器又能游玩。

如果不改这个文件,房主开服务器后只能黑屏观战。

编辑游戏目录下的 Risk of Rain 2 > Risk of Rain 2_Data > Config > server_startup.cfg 文件

还有其他服务器设置,也是在 server_startup.cfg,例如人数之内的

打开配置文件

直接复制以下代码 替换全部内容。

//====================//
// SERVER_STARTUP.CFG //
//====================//
// This is the configuration file loaded automatically on startup by the Risk of Rain 2 Dedicated Server application.
// You probably shouldn't edit this text file at all, as Steam will probably interpret changes as file corruption and replace them with the original file again when you update the server or validate its files.
// Create and use "server.cfg" to customize your server.

//
// Ensure there are no local users.
//
// remove_all_local_users; 房主是否游玩

//
// Set default parameters. These can be repeated in server.cfg with the desired parameters changed.
//
sv_maxplayers 4; // 最大玩家
steam_server_heartbeat_enabled 1; // 是否显示在服务器列表
sv_hostname "Risk of Rain 2 Dedicated Server"; // 服务器名称
sv_port 27015; // 连接端口
steam_server_query_port 27016;
steam_server_steam_port 0;
sv_password ""; // 连接密码

//
// Execute any custom configuration here.
//
echo "Loading custom server configuration..."
exec server;

//
// Start hosting.
//
echo "Hosting server..."
host 1;

二、启动游戏并启动服务器

开始游戏来到主菜单,打开控制台(按 Ctrl+Alt+~

执行 exec server_startup

启动服务器

三、映射端口

使用 自建frp

serverAddr = "服务器IP"
serverPort = 7000

[[proxies]]
name = "ror2"
type = "udp"
localIP = "127.0.0.1"
localPort = 27015
remotePort = 27015

使用 樱花frp

樱花frp

使用 natapp

natapp

四、其他玩家连接

正常启动游戏 在主菜单打开控制台(Ctrl+Alt+~

执行 connect IP:端口 连接

LICENSED UNDER CC BY-NC-SA 4.0
Comment