Sandertv / gophertunnel

General purpose library for Minecraft Bedrock Edition software written in Go
MIT License
420 stars 96 forks source link

DialContext errors in specific cases #132

Closed dreamguxiang closed 2 years ago

dreamguxiang commented 2 years ago

Relay IP: myworld.com:10000 Real IP:yourworld.com:19132 When I connect to the relay IP to join the game, addressWithPongPort replaces the port with 19132 instead of 10000, causing the connection to time out.

Sandertv commented 2 years ago

I am not fully sure I get the issue here. What port are you connecting to and what are you expecting when this happens?

dreamguxiang commented 2 years ago

image When I try to connect this server. (This server address is a traffic forwarding server that eventually reaches mc6.rhymc.com:40110) output image The output is as follows image

Sandertv commented 2 years ago

Thanks for clearing that up. I've got a couple more questions:

dreamguxiang commented 2 years ago

Vanilla Minecraft client is normal. First of all, the two are different IPs, so maybe I'm not giving a particularly good example. mc6.rhymc.com and mc7.rhymc.com

Here's an example

gz1.qwq.one:10003 connects to Venity It eventually became gz1.qwq.one:19132

Sorry, it may be a problem of my inconsiderate testing, most of the servers are normal, I only found this problem in gz1.qwq.one:10003 for now Maybe that's the reason image