Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Am I doing something wrong? #95

Open
Austayo opened this issue Jul 5, 2022 · 3 comments
Open

Am I doing something wrong? #95

Austayo opened this issue Jul 5, 2022 · 3 comments

Comments

@Austayo
Copy link

Austayo commented Jul 5, 2022

./mc-router -debug -connection-rate-limit 100 --mapping "mc.sientys.cloud=10.0.0.1:25566,mc.goldensmp.net=10.20.220.13:25565"

I am running mc-router standalone and I keep getting WARN[0004] Unable to find registered backend serverAddress=mc.sientys.cloud

same with IPs and all other domains.

@itzg
Copy link
Owner

itzg commented Jul 5, 2022

That looks right. I noticed logging of the mappings was missing, so can you grab https://github.com/itzg/mc-router/releases/tag/1.15.1 and provide the debug logs with that?

@Austayo
Copy link
Author

Austayo commented Jul 6, 2022

Ok, this time it works but now clients get timed out while trying to join:
DEBU[0000] Debug logs enabled
INFO[0000] Created route mapping backend="10.22.220.14:25565" serverAddress=mc.sientys.cloud
INFO[0000] Created route mapping backend="10.22.220.14:25565" serverAddress=mc.goldensmp.net
INFO[0000] Listening for Minecraft client connections listenAddress=":25565"
INFO[0001] Got connection client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
DEBU[0001] Reading packet client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
DEBU[0001] Reading frame client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
DEBU[0001] Read frame length client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345" length=23
DEBU[0001] Reading frame content client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345" length=23 total=23
DEBU[0001] Read frame client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345" frame="Frame:[len=23, payload=0X00F705106D632E7369656E7479732E636C6F756463DD01]"
DEBU[0001] Read packet client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345" packet="Frame:[len=23, packetId=0, data=0XF705106D632E7369656E7479732E636C6F756463DD01]"
DEBU[0001] Got packet client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345" length=23 packetID=0
DEBU[0001] Got handshake client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345" handshake="&{759 mc.sientys.cloud 25565 1}"
DEBU[0001] Finding backend for server address serverAddress=mc.sientys.cloud
INFO[0001] Connecting to backend backendHostPort="10.22.220.14:25565" client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345" server=mc.sientys.cloud
DEBU[0001] Relayed handshake to backend amount=26
INFO[0001] Finished relay backend->frontend amount=1571 client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
DEBU[0001] Closing backend connection client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
DEBU[0001] Closing frontend connection client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
INFO[0001] Finished relay frontend->backend amount=10 client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
INFO[0006] Got connection client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347"
DEBU[0006] Reading packet client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347"
DEBU[0006] Reading frame client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347"
DEBU[0006] Read frame length client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347" length=23
DEBU[0006] Reading frame content client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347" length=23 total=23
DEBU[0006] Read frame client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347" frame="Frame:[len=23, payload=0X00F705106D632E7369656E7479732E636C6F756463DD02]"
DEBU[0006] Read packet client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347" packet="Frame:[len=23, packetId=0, data=0XF705106D632E7369656E7479732E636C6F756463DD02]"
DEBU[0006] Got packet client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347" length=23 packetID=0
DEBU[0006] Got handshake client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347" handshake="&{759 mc.sientys.cloud 25565 2}"
DEBU[0006] Finding backend for server address serverAddress=mc.sientys.cloud
INFO[0006] Connecting to backend backendHostPort="10.22.220.14:25565" client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347" server=mc.sientys.cloud
DEBU[0006] Relayed handshake to backend amount=24
INFO[0037] Finished relay frontend->backend amount=1231 client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347"
DEBU[0037] Closing backend connection client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347"
DEBU[0037] Closing frontend connection client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347"
INFO[0037] Finished relay backend->frontend amount=70781 client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51347"

Both IPv4 and IPv6 btw

@itzg
Copy link
Owner

itzg commented Jul 6, 2022

I guess I need add even more logs since I can't tell if the backend server or the client initiated the TCP closure:

INFO[0001] Connecting to backend backendHostPort="10.22.220.14:25565" client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345" server=mc.sientys.cloud
DEBU[0001] Relayed handshake to backend amount=26
INFO[0001] Finished relay backend->frontend amount=1571 client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
DEBU[0001] Closing backend connection client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
DEBU[0001] Closing frontend connection client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"
INFO[0001] Finished relay frontend->backend amount=10 client="[2403:580b:84a:1:1ca0:e2be:a463:f389]:51345"

Either way I'm pretty sure it's not the router.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants