#Help with Globed server and Cloudflare tunnel

1 messages · Page 1 of 1 (latest)

vernal ingot
#

Hello everyone!

So, I try to host a Globed server for my community. I bought my own domain. https://sqdgd.ca and created some subdomains with Cloudflare. I want to create one, globed.sqdgd.ca, that will be the Globed server. I've setup on my home server Globed, and it works well with cloudflare tunnel... for me. My friend all get the connection timed out, failed to connect after 5 seconds. Is it a problem of my own or theirs?

Thanks!

#

Friends view:

#

Commands launched (using screen on Ubuntu Server):

ludo@ludo-srv:~/Globed$ sudo ./globed-central-server-x64

ludo@ludo-srv:~/Globed$ sudo ./globed-game-server-x64 0.0.0.0:4202 http://localhost:4201 (secret)

ludo@ludo-srv:~/Globed$ cloudflared tunnel route dns globed-tunnel globed.sqdgd.ca

ludo@ludo-srv:~/Globed$ sudo cloudflared tunnel run globed-tunnel

#

~/.cloudflared/config.yml

tunnel: globed-tunnel
credentials-file: ~/.cloudflared/globed-tunnel.json

ingress:

stuck matrix
#

that is a local network address, other users will not be able to connect to that

#

you have to put the public ip of your server there and ensure port 4202 is forwarded on both tcp and udp

vernal ingot
stuck matrix
#

you cannot put udp through a cf tunnel

#

if you are hosting this on your own pc then you have to do port forwarding on your router and use your home network's public ip

vernal ingot
#

But if you say that it's a UDP tunnel I need, i can configure this...

stuck matrix
#

i dont believe you can do that

#

the only other option i know is a vpn

vernal ingot
stuck matrix
#

uhh okay that certainly should not happen

vernal ingot
stuck matrix
#

so incorrect address/port somewhere

vernal ingot
#

Seems like a valid reason

stuck matrix
#

when you press "Add server" you should input the URL that would resolve to the central server

vernal ingot
#

Port 4201 or 4202?

stuck matrix
#

4201 in your case

vernal ingot
vernal ingot
#

2025-04-19T13:35:05-0400
Whoopsies! An unhandled exception has occurred.

== Geode Information ==
Loader Version: v4.3.1
Loader Commit: 2513197
Bindings Commit: 0cd132db
Installed mods: 6
Outdated mods: 0
Problems: 0

== Exception Information ==
C++ Exception: class std::runtime_error("attempting to perform an operation on an uninitialized SystemTime")
Faulty Mod: Globed v1.7.2 (dankmeme.globed2)
Crashed thread: Network Thread (out)

== Stack Trace ==

  • C:\windows\system32\kernelbase.dll + cf07
  • C:\windows\system32\VCRUNTIME140.dll + 3441
  • C:\windows\system32\ntdll.dll + f3b5
  • Z:\home\ludo.local\share\Steam\steamapps\common\Geometry Dash\geode\unzipped\dankmeme.globed2\dankmeme.globed2.dll + 671d7
  • C:\windows\system32\ucrtbase.dll + 2132c
  • C:\windows\system32\kernel32.dll + 1482d
  • C:\windows\system32\ntdll.dll + f44f

== Register States ==
RAX: 000000000952e158
RBX: 0000000000000000
RCX: 000000000952e120
RDX: 0000000000000000
RBP: 0000000000000000
RSP: 000000000952ffb0
RDI: 0000000000000000
RSI: 0000000000000000
RIP: 00006ffffff4f44f
R8: 00006ffff9440000
R9: 000000000952fb58
R10: 000000000028a880
R11: 0000000000000008
R12: 0000000000000000
R13: 0000000000000000
R14: 0000000000000000
R15: 0000000000000000

== Installed Mods ==
| [v1.2.1] b1rtek.gddlintegration
x | [v1.0.7] capeling.startpos_switcher
x | [v1.7.2] dankmeme.globed2
x | [v1.10.3] geode.custom-keybinds
x | [v4.3.1] geode.loader
x | [v1.20.1] geode.node-ids

#

(If you want the log)

stuck matrix
#

well you are using direct connection

#

which is wrong

#

you should use the "Add new" button

vernal ingot
#

Ok cool. But this is a weird feature that Direct Connection crash everything 😂

stuck matrix
#

i will fix if i can reproduce yeah

#

but this is because it's used differently

#

direct connection is when you don't have a central server, you are supposed to use ip and port of the game server there

vernal ingot
#

It seems to works in the browser

#

Not here tho. It must be a problem of my part.

#

Yep, it is a problem of my part I think

stuck matrix
#

means game server failed to make a request to the central server

#

something broke between them

vernal ingot
#

Oh damn, I'll try to catch the error then

#

Ok seems good!

stuck matrix
#

alright cool

vernal ingot
#

Thanks!

#

👌

stuck matrix
#

np

vernal ingot
# stuck matrix np

Another question, does that means I made something wrong in my config file?

stuck matrix
#

i dont know to be honest

#

could run the game server with GLOBED_GS_LOG_LEVEL=trace environment variable

#

it'll print during startup the amount of roles

vernal ingot
#

gamemoderun WINEDLLOVERRIDES="xinput1_4=n,b" GLOBED_GS_LOG_LEVEL=trace %command%

Like this?

stuck matrix
#

the server

#

not the client

#

mb

vernal ingot
#

Oh, alright

#

Central or game?

stuck matrix
#

game server

#

i think it should print the roles at least but i'm not sure

vernal ingot
#

ludo@ludo-srv:~/Globed$ ./globed-game-server-x64 0.0.0.0:4202 http://147.185.221.27:48246 (secret) GLOBED_GS_LOG_LEVEL=trace
[2025-04-19 17:53:54.270] [INFO] - Retrieving config from the central server..
[2025-04-19 17:53:54.643] [INFO] - Server launched on 0.0.0.0:4202 (version: 1.4.0)
[2025-04-19 17:54:04.722] [WARN] - trying to assign an invalid role to a user: admin
[2025-04-19 17:54:04.722] [INFO] - [Ludlulu (15131512) @ 127.128.222.184:35283] Login successful, platform: Globed v1.7.2, protocol v13
[2025-04-19 17:54:04.901] [INFO] - [Ludlulu (15131512) @ 127.128.222.184:35283] just logged into the admin panel (with global password)

stuck matrix
#

ah yeah

#

huh

vernal ingot
#

So... I can't create custom roles?

stuck matrix
#

you should be able to, i dont know why its not working

#

oh

#

im guessing you had an "admin" role beforehand and you removed it

#

but you didn't remove it from yourself

#

so that role id is still in the list, and it causes troubles

vernal ingot
#

That's a good guess! I'll try to add a admin role.

#

(Not sure how to write guess, guest?)

#

I'll try now

#

Worked like a charm!

#

Now there is only one problem that remains (and then, I'll let you alone, promise 😂 )

#

So, I created an entry on my DNS provider, and I have a pretty weird error when I try to connect. (It still works with the playit.gg address)

stuck matrix
#

but also, do you have a reverse proxy set up?

#

unless theres nginx or something else to redirect, the server wont get the request

vernal ingot
stuck matrix
#

well i mean anything that would redirect it

vernal ingot
#

I see

#

So, it is an error from my cloudflare config

stuck matrix
#

not really

#

i don't think cloudflare can redirect to a specific port

#

easiest solution is just put the port at the end

#

more proper solution is to have a simple nginx proxy on the port 80 of your server that redirects all requests to port 4201

vernal ingot
#

Well, I did it with a Minecraft server

stuck matrix
#

yeah, because minecraft supports SRV queries

#

globed does not

vernal ingot
#

Ohh, I see

stuck matrix
#

i was planning to add it at some point but haven't done it

#

because it's very niche and i didn't need it myself

vernal ingot
#

Yeah I see

#

So I should create a simple A record?

stuck matrix
#

again you cannot specify the port in A records

#

only the IP

#

the request will always go to port 80 in case of http

vernal ingot
stuck matrix
#

yeah

vernal ingot
#

Oohh progress?

#

(My bad, it's french)

#

It works! Sorry, it's because of HTTPS://

stuck matrix
#

uhh

#

yeah right

vernal ingot
#

My network admin experience isn't proud of me 😂

#

Alright, no more question! Thanks a lot!

#

I'll port forward it when I'll get access to my enterprise network router.

#

👍

stuck matrix
#

alright np