#itzg/minecraft-server unable to connect
4 messages · Page 1 of 1 (latest)
You are connecting to the Railway provided port, right?
Railway proxies abc.rlwy.net:???? to abc.railway.internal:25565
You have to use the first port to connect
New reply sent from Central Station thread:
Hi,
👋🏽
Just a heads up, the reason you can’t connect is because Railway doesn’t expose port 25565 directly. That port only exists inside the container. Railway assigns a random public port on every deploy and then proxies traffic from that public port to 25565 internally.
To fix it, go to your service in Railway → Deployments → Networking tab. Look for the “TCP Public Port.” That’s the port you actually need to use.
Instead of connecting to abc.rlwy.net:25565, you need to connect to abc.rlwy.net:<the-public-port-they-give-you>. It’ll be something like 34829 or 51244 depending on the deploy.
As long as your container is listening on 25565 inside, you just connect using the Railway-assigned port outside and it’ll work.
You're seeing this because this thread has been automatically linked to the Central Station thread.