Hello, I tried to install minecraft server in my fly io account. It’s running but I have problem that I can’t connect to it.
Here’s what I tried:
- Exposing 25565 port by setting
EXPOSE 25565
on myDockerfile
andinternal_port
- Switching to expose 80 port by exactly changing above values
Dockerfile
FROM itzg/minecraft-server
# Set server properties
ENV EULA=TRUE
ENV MOTD="Minecraft Server"
ENV MAX_PLAYERS=10
# Add players to ops.txt
RUN echo "player1" > ops.txt && \
echo "player2 >> ops.txt && \
echo "player3 >> ops.txt && \
echo "player4 >> ops.txt
# Add players to whitelist.txt
RUN echo "player1 > whitelist.txt && \
echo "player2" >> whitelist.txt && \
echo "player3 >> whitelist.txt && \
echo "player4 >> whitelist.txt
EXPOSE 25565
my fly.toml
app = "minecraft-app"
kill_signal = "SIGINT"
kill_timeout = 5
[[services]]
internal_port = 25565
protocol = "tcp"
[services.concurrency]
hard_limit = 10
soft_limit = 10
[[services.ports]]
handlers = ["http"]
port = "80"
log
2023-03-29T15:46:35.305 app[6faa96bc] sin [info] [15:46:35] [Server thread/INFO]: Starting minecraft server version 1.19.4
2023-03-29T15:46:35.305 app[6faa96bc] sin [info] [15:46:35] [Server thread/INFO]: Loading properties
2023-03-29T15:46:35.306 app[6faa96bc] sin [info] [15:46:35] [Server thread/INFO]: Default game type: SURVIVAL
2023-03-29T15:46:35.306 app[6faa96bc] sin [info] [15:46:35] [Server thread/INFO]: Generating keypair
2023-03-29T15:46:35.474 app[6faa96bc] sin [info] [15:46:35] [Server thread/INFO]: Starting Minecraft server on *:25565
2023-03-29T15:46:35.542 app[6faa96bc] sin [info] [15:46:35] [Server thread/INFO]: Using epoll channel type
2023-03-29T15:46:35.720 app[6faa96bc] sin [info] [15:46:35] [Server thread/INFO]: Preparing level "world"
2023-03-29T15:46:51.860 app[6faa96bc] sin [info] [15:46:51] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
2023-03-29T15:46:54.524 app[6faa96bc] sin [info] [15:46:54] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:54.531 app[6faa96bc] sin [info] [15:46:54] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:54.533 app[6faa96bc] sin [info] [15:46:54] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:54.535 app[6faa96bc] sin [info] [15:46:54] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:54.536 app[6faa96bc] sin [info] [15:46:54] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:54.537 app[6faa96bc] sin [info] [15:46:54] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:54.959 app[6faa96bc] sin [info] [15:46:54] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:55.578 app[6faa96bc] sin [info] [15:46:55] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:55.935 app[6faa96bc] sin [info] [15:46:55] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:56.365 app[6faa96bc] sin [info] [15:46:56] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:57.628 app[6faa96bc] sin [info] [15:46:57] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:57.632 app[6faa96bc] sin [info] [15:46:57] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:57.877 app[6faa96bc] sin [info] [15:46:57] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:58.435 app[6faa96bc] sin [info] [15:46:58] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:58.903 app[6faa96bc] sin [info] [15:46:58] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:59.379 app[6faa96bc] sin [info] [15:46:59] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:46:59.925 app[6faa96bc] sin [info] [15:46:59] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:00.364 app[6faa96bc] sin [info] [15:47:00] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:01.100 app[6faa96bc] sin [info] [15:47:01] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:01.377 app[6faa96bc] sin [info] [15:47:01] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:01.889 app[6faa96bc] sin [info] [15:47:01] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:02.373 app[6faa96bc] sin [info] [15:47:02] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:02.876 app[6faa96bc] sin [info] [15:47:02] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:03.395 app[6faa96bc] sin [info] [15:47:03] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:03.862 app[6faa96bc] sin [info] [15:47:03] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:04.390 app[6faa96bc] sin [info] [15:47:04] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:04.885 app[6faa96bc] sin [info] [15:47:04] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:05.382 app[6faa96bc] sin [info] [15:47:05] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:05.873 app[6faa96bc] sin [info] [15:47:05] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:06.380 app[6faa96bc] sin [info] [15:47:06] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:06.874 app[6faa96bc] sin [info] [15:47:06] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:07.370 app[6faa96bc] sin [info] [15:47:07] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:07.866 app[6faa96bc] sin [info] [15:47:07] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:08.406 app[6faa96bc] sin [info] [15:47:08] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:08.875 app[6faa96bc] sin [info] [15:47:08] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:09.374 app[6faa96bc] sin [info] [15:47:09] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:09.899 app[6faa96bc] sin [info] [15:47:09] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:10.362 app[6faa96bc] sin [info] [15:47:10] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:10.888 app[6faa96bc] sin [info] [15:47:10] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:11.408 app[6faa96bc] sin [info] [15:47:11] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:11.871 app[6faa96bc] sin [info] [15:47:11] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:12.365 app[6faa96bc] sin [info] [15:47:12] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:12.893 app[6faa96bc] sin [info] [15:47:12] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:13.369 app[6faa96bc] sin [info] [15:47:13] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:13.874 app[6faa96bc] sin [info] [15:47:13] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:14.383 app[6faa96bc] sin [info] [15:47:14] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:14.882 app[6faa96bc] sin [info] [15:47:14] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:15.370 app[6faa96bc] sin [info] [15:47:15] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:15.874 app[6faa96bc] sin [info] [15:47:15] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:16.374 app[6faa96bc] sin [info] [15:47:16] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:16.870 app[6faa96bc] sin [info] [15:47:16] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:17.392 app[6faa96bc] sin [info] [15:47:17] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:17.870 app[6faa96bc] sin [info] [15:47:17] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:18.374 app[6faa96bc] sin [info] [15:47:18] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:18.924 app[6faa96bc] sin [info] [15:47:18] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:19.367 app[6faa96bc] sin [info] [15:47:19] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:19.862 app[6faa96bc] sin [info] [15:47:19] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:20.383 app[6faa96bc] sin [info] [15:47:20] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:20.918 app[6faa96bc] sin [info] [15:47:20] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:21.522 app[6faa96bc] sin [info] [15:47:21] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:21.867 app[6faa96bc] sin [info] [15:47:21] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:22.371 app[6faa96bc] sin [info] [15:47:22] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:22.884 app[6faa96bc] sin [info] [15:47:22] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:23.362 app[6faa96bc] sin [info] [15:47:23] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:23.944 app[6faa96bc] sin [info] [15:47:23] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:24.364 app[6faa96bc] sin [info] [15:47:24] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:24.864 app[6faa96bc] sin [info] [15:47:24] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:25.368 app[6faa96bc] sin [info] [15:47:25] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:25.866 app[6faa96bc] sin [info] [15:47:25] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:26.384 app[6faa96bc] sin [info] [15:47:26] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:26.863 app[6faa96bc] sin [info] [15:47:26] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:27.365 app[6faa96bc] sin [info] [15:47:27] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:27.867 app[6faa96bc] sin [info] [15:47:27] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:28.383 app[6faa96bc] sin [info] [15:47:28] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:28.871 app[6faa96bc] sin [info] [15:47:28] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:29.410 app[6faa96bc] sin [info] [15:47:29] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:29.884 app[6faa96bc] sin [info] [15:47:29] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:30.377 app[6faa96bc] sin [info] [15:47:30] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:30.895 app[6faa96bc] sin [info] [15:47:30] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:31.369 app[6faa96bc] sin [info] [15:47:31] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:31.880 app[6faa96bc] sin [info] [15:47:31] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:32.382 app[6faa96bc] sin [info] [15:47:32] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:32.887 app[6faa96bc] sin [info] [15:47:32] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:33.405 app[6faa96bc] sin [info] [15:47:33] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:33.882 app[6faa96bc] sin [info] [15:47:33] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:34.372 app[6faa96bc] sin [info] [15:47:34] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:34.901 app[6faa96bc] sin [info] [15:47:34] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:35.387 app[6faa96bc] sin [info] [15:47:35] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:35.887 app[6faa96bc] sin [info] [15:47:35] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:36.363 app[6faa96bc] sin [info] [15:47:36] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:36.892 app[6faa96bc] sin [info] [15:47:36] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:37.366 app[6faa96bc] sin [info] [15:47:37] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:37.864 app[6faa96bc] sin [info] [15:47:37] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:38.403 app[6faa96bc] sin [info] [15:47:38] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:38.869 app[6faa96bc] sin [info] [15:47:38] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:39.386 app[6faa96bc] sin [info] [15:47:39] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:39.913 app[6faa96bc] sin [info] [15:47:39] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:40.381 app[6faa96bc] sin [info] [15:47:40] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:40.882 app[6faa96bc] sin [info] [15:47:40] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:41.376 app[6faa96bc] sin [info] [15:47:41] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:41.896 app[6faa96bc] sin [info] [15:47:41] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:42.364 app[6faa96bc] sin [info] [15:47:42] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:42.867 app[6faa96bc] sin [info] [15:47:42] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:43.363 app[6faa96bc] sin [info] [15:47:43] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:43.862 app[6faa96bc] sin [info] [15:47:43] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:44.369 app[6faa96bc] sin [info] [15:47:44] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:44.864 app[6faa96bc] sin [info] [15:47:44] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:45.443 app[6faa96bc] sin [info] [15:47:45] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:45.865 app[6faa96bc] sin [info] [15:47:45] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:46.377 app[6faa96bc] sin [info] [15:47:46] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:46.874 app[6faa96bc] sin [info] [15:47:46] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:47.389 app[6faa96bc] sin [info] [15:47:47] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:47.864 app[6faa96bc] sin [info] [15:47:47] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:48.398 app[6faa96bc] sin [info] [15:47:48] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:49.056 app[6faa96bc] sin [info] [15:47:49] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:49.378 app[6faa96bc] sin [info] [15:47:49] [Worker-Main-6/INFO]: Preparing spawn area: 0%
2023-03-29T15:47:50.382 app[6faa96bc] sin [info] [15:47:50] [Worker-Main-6/INFO]: Preparing spawn area: 1%
2023-03-29T15:47:50.384 app[6faa96bc] sin [info] [15:47:50] [Worker-Main-6/INFO]: Preparing spawn area: 1%
2023-03-29T15:47:51.294 app[6faa96bc] sin [info] [15:47:51] [Worker-Main-6/INFO]: Preparing spawn area: 10%
2023-03-29T15:47:52.048 app[6faa96bc] sin [info] [15:47:52] [Worker-Main-6/INFO]: Preparing spawn area: 11%
2023-03-29T15:47:52.053 app[6faa96bc] sin [info] [15:47:52] [Worker-Main-6/INFO]: Preparing spawn area: 11%
2023-03-29T15:47:52.366 app[6faa96bc] sin [info] [15:47:52] [Worker-Main-6/INFO]: Preparing spawn area: 20%
2023-03-29T15:47:53.245 app[6faa96bc] sin [info] [15:47:53] [Worker-Main-6/INFO]: Preparing spawn area: 22%
2023-03-29T15:47:53.384 app[6faa96bc] sin [info] [15:47:53] [Worker-Main-6/INFO]: Preparing spawn area: 31%
2023-03-29T15:47:54.442 app[6faa96bc] sin [info] [15:47:54] [Worker-Main-6/INFO]: Preparing spawn area: 32%
2023-03-29T15:47:54.445 app[6faa96bc] sin [info] [15:47:54] [Worker-Main-6/INFO]: Preparing spawn area: 32%
2023-03-29T15:47:55.539 app[6faa96bc] sin [info] [15:47:55] [Worker-Main-6/INFO]: Preparing spawn area: 41%
2023-03-29T15:47:55.578 app[6faa96bc] sin [info] [15:47:55] [Worker-Main-6/INFO]: Preparing spawn area: 41%
2023-03-29T15:47:57.255 app[6faa96bc] sin [info] [15:47:57] [Worker-Main-6/INFO]: Preparing spawn area: 45%
2023-03-29T15:47:57.256 app[6faa96bc] sin [info] [15:47:57] [Worker-Main-6/INFO]: Preparing spawn area: 45%
2023-03-29T15:47:57.256 app[6faa96bc] sin [info] [15:47:57] [Worker-Main-6/INFO]: Preparing spawn area: 45%
2023-03-29T15:47:57.514 app[6faa96bc] sin [info] [15:47:57] [Worker-Main-6/INFO]: Preparing spawn area: 63%
2023-03-29T15:47:58.589 app[6faa96bc] sin [info] [15:47:58] [Worker-Main-6/INFO]: Preparing spawn area: 65%
2023-03-29T15:47:58.597 app[6faa96bc] sin [info] [15:47:58] [Worker-Main-6/INFO]: Preparing spawn area: 65%
2023-03-29T15:47:59.194 app[6faa96bc] sin [info] [15:47:59] [Worker-Main-6/INFO]: Preparing spawn area: 74%
2023-03-29T15:47:59.594 app[6faa96bc] sin [info] [15:47:59] [Worker-Main-6/INFO]: Preparing spawn area: 82%
2023-03-29T15:48:00.552 app[6faa96bc] sin [info] [15:48:00] [Worker-Main-6/INFO]: Preparing spawn area: 88%
2023-03-29T15:48:00.593 app[6faa96bc] sin [info] [15:48:00] [Worker-Main-6/INFO]: Preparing spawn area: 88%
2023-03-29T15:48:04.438 app[6faa96bc] sin [info] [15:48:04] [Server thread/INFO]: Time elapsed: 72576 ms
2023-03-29T15:48:04.439 app[6faa96bc] sin [info] [15:48:04] [Server thread/INFO]: Done (88.723s)! For help, type "help"
2023-03-29T15:48:04.439 app[6faa96bc] sin [info] [15:48:04] [Server thread/INFO]: Starting remote control listener
2023-03-29T15:48:04.447 app[6faa96bc] sin [info] [15:48:04] [Server thread/INFO]: Thread RCON Listener started
2023-03-29T15:48:04.447 app[6faa96bc] sin [info] [15:48:04] [Server thread/INFO]: RCON running on 0.0.0.0:25575