matchmaking returns empty ports

attempting to test and implement rivet matchmaking via unreal engine. I'm testing locally (as documented in the unreal engine guide) and I've come across something that I believe was not happening until recently when using https://api.rivet.gg/matchmaker/lobbies/find the JSON response includes empty ports, which means client to server connections wont work as far as I know. I havent tested this with a live server. any help would be appreciated JSON Response
{
"lobby": {
"lobby_id": "00000000-0000-0000-0000-000000000000",
"region": {
"region_id": "dev-lcl",
"display_name": "Local"
},
"ports": {},
"player": {
"token": "dev_player.XXXXX"
}
},
"ports": {},
"player": {
"token": "dev_player.XXXXXX"
}
}
{
"lobby": {
"lobby_id": "00000000-0000-0000-0000-000000000000",
"region": {
"region_id": "dev-lcl",
"display_name": "Local"
},
"ports": {},
"player": {
"token": "dev_player.XXXXX"
}
},
"ports": {},
"player": {
"token": "dev_player.XXXXXX"
}
}
11 Replies
Zhymon
ZhymonOP11mo ago
Noticing the API endpoints look very different between the unreal plugin and the godot pulgin. Possibly missing something I think @Nathan I know a while back I needed to update the URL for the matchmaker, is there possibly a similar issue here? https://github.com/OpenGameBackend/plugin-unreal/pull/2/files
Nathan
Nathan11mo ago
@Zhymon hey! sorry i missed this message, i’ll check it out in a couple hours. we haven’t changed the matchmaking api recently.
Zhymon
ZhymonOP11mo ago
all good I did just notice my local toolchain is very out of date, thought there is the token im usally locally could have missing entilements possibly
╰─ rivet -V
rivet-cli 1.3.4 (f4833fa)
╰─ rivet -V
rivet-cli 1.3.4 (f4833fa)
Zhymon
ZhymonOP11mo ago
think i just made it worse for myself 😅 . doesn't look like the latest rivet cli has a token command, looked into the opengb install and I dont think that install command is valid anymore either. https://opengamebackend.org/quickstart
╭─ pwsh     p4_alpha   22ms⠀  9.0.102     06 Feb 25 19:30 -0500 
╰─ rivet token
error: unrecognized subcommand 'token'

Usage: rivet.exe <COMMAND>

For more information, try '--help'.
╭─ pwsh     p4_alpha   22ms⠀  9.0.102     06 Feb 25 19:30 -0500 
╰─ irm https://deno.land/install.ps1 | iex
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 39.3M 100 39.3M 0 0 31.4M 0 0:00:01 0:00:01 --:--:-- 31.4M
Deno was installed successfully to C:\Users\Coolj\.deno\bin\deno.exe
Run 'deno --help' to get started
Stuck? Join our Discord https://discord.gg/deno
╭─ pwsh     p4_alpha   2s 209ms⠀  9.0.102     06 Feb 25 19:31 -0500 
╰─ deno install -n opengb -fgA https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.5/src/cli/main.ts
error: Module not found "https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.5/src/cli/main.ts".
╭─ pwsh     p4_alpha   22ms⠀  9.0.102     06 Feb 25 19:30 -0500 
╰─ rivet token
error: unrecognized subcommand 'token'

Usage: rivet.exe <COMMAND>

For more information, try '--help'.
╭─ pwsh     p4_alpha   22ms⠀  9.0.102     06 Feb 25 19:30 -0500 
╰─ irm https://deno.land/install.ps1 | iex
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 39.3M 100 39.3M 0 0 31.4M 0 0:00:01 0:00:01 --:--:-- 31.4M
Deno was installed successfully to C:\Users\Coolj\.deno\bin\deno.exe
Run 'deno --help' to get started
Stuck? Join our Discord https://discord.gg/deno
╭─ pwsh     p4_alpha   2s 209ms⠀  9.0.102     06 Feb 25 19:31 -0500 
╰─ deno install -n opengb -fgA https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.5/src/cli/main.ts
error: Module not found "https://raw.githubusercontent.com/rivet-gg/opengb/v0.1.5/src/cli/main.ts".
Zhymon
ZhymonOP11mo ago
This does bring up a question, for game server hosting and matchmaking services do they now live under the opengb umbrella or still under rivet? Also if I were to launch my game tomorrow can I still use hub.rivet.gg or would I need to self host?
Nathan
Nathan11mo ago
@Zhymon alright, sorry about the delay there! the issue you sent shows that you're using a development token to make a request to the matchmaker. (see the Local region and null lobby ID). are you trying to test locally or connect to a live server? the rivet token dev create should give you a dev token that corresponds to the ports in your rivet config. if you're getting no ports, then you might be running the command from the wrong folder. yeah, stick on the 1.x cli release for unreal engine. we haven't shipped the plugin for unreal engine on v2 yet.
for game server hosting and matchmaking services do they now live under the opengb umbrella or still under rivet
it's still going to be under rivet. the "opengb" branding was an experiment, but we decided to keep everything under one brand since it's too confusing.
if I were to launch my game tomorrow can I still use hub.rivet.gg or would I need to self host
yes, hub.rivet.gg works fine. if you don't see the matchmaking tab in the ui, let me know.
I dont think that install command is valid anymore either
oops, it should be:
powershell -Command "$env:RIVET_CLI_VERSION='v1.3.4'; iwr https://raw.githubusercontent.com/rivet-gg/cli/$env:RIVET_CLI_VERSION/install/windows.ps1 -useb | iex"
powershell -Command "$env:RIVET_CLI_VERSION='v1.3.4'; iwr https://raw.githubusercontent.com/rivet-gg/cli/$env:RIVET_CLI_VERSION/install/windows.ps1 -useb | iex"
lmk if that doesn't work
Zhymon
ZhymonOP11mo ago
hey @Nathan looks like im back in business! looks like it was a combination of CLI, folder, and the token. I see 'Lobbies' in hub.rivet.gg im assuming thats the same thing as matchmaking? thank you so much for assisting with the troubleshooting. If you need any testing or support on the Unreal side please let me know. big fan of the product as you guys have really nailed the dev experience ❤️‍🔥
{
"lobby": {
"lobby_id": "00000000-0000-0000-0000-000000000000",
"region": {
"region_id": "dev-lcl",
"display_name": "Local"
},
"ports": {
"default": {
"host": "127.0.0.1:7777",
"hostname": "127.0.0.1",
"port": 7777,
"is_tls": false
}
},
"player": {
"token": "dev_player.xxx"
}
},
"ports": {
"default": {
"host": "127.0.0.1:7777",
"hostname": "127.0.0.1",
"port": 7777,
"is_tls": false
}
},
"player": {
"token": "dev_player.xxx"
}
}
{
"lobby": {
"lobby_id": "00000000-0000-0000-0000-000000000000",
"region": {
"region_id": "dev-lcl",
"display_name": "Local"
},
"ports": {
"default": {
"host": "127.0.0.1:7777",
"hostname": "127.0.0.1",
"port": 7777,
"is_tls": false
}
},
"player": {
"token": "dev_player.xxx"
}
},
"ports": {
"default": {
"host": "127.0.0.1:7777",
"hostname": "127.0.0.1",
"port": 7777,
"is_tls": false
}
},
"player": {
"token": "dev_player.xxx"
}
}
Nathan
Nathan11mo ago
awesome! we'll for sure let you know, thank you!
Zhymon
ZhymonOP3mo ago
@Nathan hello again, just a heads up im on the older OpenGameBackend version of Rivet and it looks like im hitting a 403 when attempting to iterate locally connecting to a unreal server. I have plans to adapt the plugin to the newer rivet container workflow and openapi spec but things where working until today so I hadnt gotten around to it.
LogTemp: Display: Rivet request: POST https://api.rivet.gg/matchmaker/lobbies/find (dev_staging.eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.CJnfqdOxMxCZh-WVvDIaEgoQko3xeiIXR8GQHWPYB265TCIxQi8KEgoQIVi7wglLR9u-eovAy5E_CxoJMTI3LjAuMC4xIg4KB2RlZmF1bHQQ4TwYAg.NaUvkD4H0-xoTT9YldDFr3XxAEaqPT076bqPJKP2yF7HemXGSCzuZnQLQ-KiBY6y0X14fFDYFa_YJuc0uyaeBQ)
{
"game_modes": [
"default"
],
"prevent_auto_create_lobby": false
}
LogTemp: Error: Request status not ok: 403
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Attention Required! | Cloudflare</title>
LogTemp: Display: Rivet request: POST https://api.rivet.gg/matchmaker/lobbies/find (dev_staging.eyJ0eXAiOiJKV1QiLCJhbGciOiJFZERTQSJ9.CJnfqdOxMxCZh-WVvDIaEgoQko3xeiIXR8GQHWPYB265TCIxQi8KEgoQIVi7wglLR9u-eovAy5E_CxoJMTI3LjAuMC4xIg4KB2RlZmF1bHQQ4TwYAg.NaUvkD4H0-xoTT9YldDFr3XxAEaqPT076bqPJKP2yF7HemXGSCzuZnQLQ-KiBY6y0X14fFDYFa_YJuc0uyaeBQ)
{
"game_modes": [
"default"
],
"prevent_auto_create_lobby": false
}
LogTemp: Error: Request status not ok: 403
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
<head>
<title>Attention Required! | Cloudflare</title>
Nicholas
Nicholas3mo ago
We have deprecated support for OpenGB in favor of the more universal primitive of Rivet Actors. The use of OpenGB + everything else was cumbersome to adopt and use, so we opted for something far more lightweight and customizable
Zhymon
ZhymonOP3mo ago
@Nicholas understood. if im following correctly the 'Rivet Containers' workflow would be the way to host and use game servers now correct? If so is that something supported with the Self-Hosted setup out of the box or it is exclusive to the cloud offering?
https://www.rivet.dev/docs/cloud/containers/
Rivet
Rivet Containers - Rivet
Rivet Containers allows you to deploy any application packaged as a Docker container to the cloud. Deploy web servers, game backends, or any custom service with complete control over your runtime environment.

Did you find this page helpful?