itzg / mc-router

Routes Minecraft client connections to backend servers based upon the requested server address
MIT License
536 stars 35 forks source link

RCON-port when running mc-router #126

Open Elespecia opened 1 year ago

Elespecia commented 1 year ago

Found mc-router when I was searching for a way to force the container to a subnet and it works great. So now I'm getting into stacks with Portainer and have set up two different MC-servers. Also works great.

However, seems like the RCON-port is'nt forwarded through the mc-router. I've even tried exposing the ports as usal (different ports though since the bridge is same), but it doen't even work with that. Is there a magic --mapping command to map those ports same as with the mc-ports?

itzg commented 1 year ago

It's not possible to route rcon. There is no header packet that specifies which host is intended for connection.

Elespecia commented 1 year ago

Oh, bummer. Feature request?

Seems it's not working on it's own either? Meaning 25565 goes through router to subdomain and the two RCON (26675 & another) directly to IP. Shouldn't it work?

itzg commented 1 year ago

Oh, bummer. Feature request?

Feature request for whom? It's an established protocol.

Seems it's not working on it's own either? Meaning 25565 goes through router to subdomain and the two RCON (26675 & another) directly to IP. Shouldn't it work?

Do you mean with port mapping each container to a different port? That should work.