mc-router icon indicating copy to clipboard operation
mc-router copied to clipboard

Am I doing something wrong?

Open Austayo opened this issue 3 years ago • 3 comments

./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.

Austayo avatar Jul 05 '22 03:07 Austayo

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?

itzg avatar Jul 05 '22 15:07 itzg

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

Austayo avatar Jul 06 '22 00:07 Austayo

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.

itzg avatar Jul 06 '22 02:07 itzg