Giter VIP home page Giter VIP logo

Comments (13)

itzg avatar itzg commented on August 23, 2024

Since Bedrock uses UDP I have found it to be finicky in some cases. What kind of host system are you using and where is your client relative to that? Also providing the logs from the container could help debug.

from docker-minecraft-bedrock-server.

emanual4real avatar emanual4real commented on August 23, 2024

Host is Ubuntu 18.04.3 LTS (ethernet) and client is Windows 10 (wifi) on same LAN.

I will have to post the logs after work but I do remember seeing something strange. It looked like the logs had two entries for each port type, ipv4 and ipv6. One of the ipv4 lines was 19132 and the other was different. The different one occurred after my 19132 port entry, possibly overwriting it.

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on August 23, 2024

I have a very similar setup, but has been working fine. The second, random port logging seems to be normal but a mystery value.

When you’re grabbing the logs can you also check firewall isn’t enabled or isn’t blocking that port?

from docker-minecraft-bedrock-server.

emanual4real avatar emanual4real commented on August 23, 2024

I'll have to get back to you; I broke my box and can't boot up.

from docker-minecraft-bedrock-server.

emanual4real avatar emanual4real commented on August 23, 2024

Logs:

time="2020-01-18T05:54:02Z"` level=debug msg="Using /data to match uid and gid"
time="2020-01-18T05:54:02Z" level=debug msg="Resolved UID=0 from match path"
time="2020-01-18T05:54:02Z" level=debug msg="Resolved GID=0 from match path"
time="2020-01-18T05:54:02Z" level=debug msg="stdin is detached, so forwarding is disabled"
Downloading Bedrock server version 1.14.1.4 ...
2020/01/18 05:54:13 Setting server-name to mannytest in server.properties
2020/01/18 05:54:13 Setting difficulty to hard in server.properties
Starting Bedrock server...
NO LOG FILE! - setting up server logging...
[2020-01-18 05:54:13 INFO] Starting Server
[2020-01-18 05:54:13 INFO] Version 1.14.1.4
[2020-01-18 05:54:13 INFO] Session ID df24383c-b4f5-475a-8c2b-e34e2ae0458a
[2020-01-18 05:54:13 INFO] Level Name: Bedrock level
[2020-01-18 05:54:13 INFO] Game mode: 0 Survival
[2020-01-18 05:54:13 INFO] Difficulty: 3 HARD
[2020-01-18 05:54:15 INFO] IPv4 supported, port: 19132
[2020-01-18 05:54:15 INFO] IPv6 not supported
[2020-01-18 05:54:15 INFO] IPv4 supported, port: 49979
[2020-01-18 05:54:15 INFO] IPv6 not supported
[2020-01-18 05:54:16 INFO] Server started.
  • Firewall is not currently enabled on Linux box.
  • Temporarily turned off firewall on Windows 10
  • Port forwarded router
    image

I'm able to standup a docker express app on 8000, forward it, and then see "hello world" on WIn 10 machine.

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on August 23, 2024

Everything looks right there. Silly question but are you using the Windows 10 client (or console or mobile) instead of Java client?

from docker-minecraft-bedrock-server.

emanual4real avatar emanual4real commented on August 23, 2024

I have both. The java edition v1.15.1 on Windows 10 worked first try with the java edition docker server. I have the Windows version as well, v1.14.1, which won't connect with bedrock edition.

from docker-minecraft-bedrock-server.

emanual4real avatar emanual4real commented on August 23, 2024

From my windows 10 pc trying to connect to linux server with minecraft-bedrock
image

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on August 23, 2024

Thanks for the port query info. Let's do some debugging on the Ubuntu host. Let's first double check the container port configs (my results shown here):

> docker ps
CONTAINER ID        IMAGE                           COMMAND                  CREATED             STATUS              PORTS                      NAMES
44f97218abf7        itzg/minecraft-bedrock-server   "/usr/local/bin/entr…"   6 days ago          Up 6 days           0.0.0.0:19132->19132/udp   bedrock

Then, see if the docker-proxy is properly listening on the container's port 19132, such as:

> sudo lsof -i:19132
COMMAND     PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
docker-pr 25885 root    4u  IPv6 17675682      0t0  UDP *:19132

Finally, let's use tcpdump to see what happens when the client sends out the broadcast packet (to 192.168.50.255 in the case of my network) and if the server-container responds:

$ sudo tcpdump -v udp port 19132
tcpdump: listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes
16:34:46.754038 IP (tos 0x0, ttl 128, id 40812, offset 0, flags [none], proto UDP (17), length 61)
    XboxOne.57048 > 192.168.50.255.19132: UDP, length 33
16:34:46.754848 IP (tos 0x0, ttl 64, id 6822, offset 0, flags [DF], proto UDP (17), length 159)
    nuc.19132 > XboxOne.57048: UDP, length 131
16:34:47.756211 IP (tos 0x0, ttl 128, id 40813, offset 0, flags [none], proto UDP (17), length 61)
    XboxOne.57048 > 192.168.50.255.19132: UDP, length 33
16:34:47.756865 IP (tos 0x0, ttl 64, id 7036, offset 0, flags [DF], proto UDP (17), length 159)
    nuc.19132 > XboxOne.57048: UDP, length 131
.
.
.

from docker-minecraft-bedrock-server.

emanual4real avatar emanual4real commented on August 23, 2024

Here is everything you asked for. I just tested it on Xbox and it was already recognized and started working immediately. So it seems to be limited to my Windows 10 PC. The Windows app store is the bedrock edition right?

CONTAINER ID        IMAGE               COMMAND                  CREATED           STATUS              PORTS                                 NAMES
523fc127819e        minecraft-bedrock   "/usr/local/bin/entr…"   19 hours ago      Up 19 hours         19132/tcp, 0.0.0.0:19132->19132/udp   admiring_faraday
66051ba502f5        helloworld          "docker-entrypoint.s…"   19 hours ago      Up 19 hours         0.0.0.0:49160->8080/tcp               determined_willia    
COMMAND    PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
docker-pr 1966 root    4u  IPv6 1622845      0t0  UDP *:19132
tcpdump: listening on enp9s0, link-type EN10MB (Ethernet), capture size 262144 b                                                                              ytes
10:36:20.863118 IP (tos 0x0, ttl 128, id 41950, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:20.863753 IP (tos 0x0, ttl 64, id 6433, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:21.865142 IP (tos 0x0, ttl 128, id 41951, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:21.865384 IP (tos 0x0, ttl 64, id 6436, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:22.881191 IP (tos 0x0, ttl 128, id 41952, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:22.881442 IP (tos 0x0, ttl 64, id 6482, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:23.898776 IP (tos 0x0, ttl 128, id 41953, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:23.898976 IP (tos 0x0, ttl 64, id 6627, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:24.916591 IP (tos 0x0, ttl 128, id 41954, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:24.917003 IP (tos 0x0, ttl 64, id 6700, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:25.917583 IP (tos 0x0, ttl 128, id 41955, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:25.917925 IP (tos 0x0, ttl 64, id 6702, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:26.936733 IP (tos 0x0, ttl 128, id 41956, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:26.937073 IP (tos 0x0, ttl 64, id 6805, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:27.947860 IP (tos 0x0, ttl 128, id 41957, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:27.948084 IP (tos 0x0, ttl 64, id 6929, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:28.951825 IP (tos 0x0, ttl 128, id 41958, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:28.952170 IP (tos 0x0, ttl 64, id 7087, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:29.966811 IP (tos 0x0, ttl 128, id 41959, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:29.967138 IP (tos 0x0, ttl 64, id 7168, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:30.985385 IP (tos 0x0, ttl 128, id 41960, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:30.985575 IP (tos 0x0, ttl 64, id 7357, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:31.998903 IP (tos 0x0, ttl 128, id 41961, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:31.999331 IP (tos 0x0, ttl 64, id 7384, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:33.014776 IP (tos 0x0, ttl 128, id 41962, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:33.015190 IP (tos 0x0, ttl 64, id 7457, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:34.031247 IP (tos 0x0, ttl 128, id 41963, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:34.031617 IP (tos 0x0, ttl 64, id 7606, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:35.048569 IP (tos 0x0, ttl 128, id 41964, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:35.048914 IP (tos 0x0, ttl 64, id 7708, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:36.064636 IP (tos 0x0, ttl 128, id 41965, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:36.065074 IP (tos 0x0, ttl 64, id 7952, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:37.084560 IP (tos 0x0, ttl 128, id 41966, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:37.084978 IP (tos 0x0, ttl 64, id 8139, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123
10:36:38.098867 IP (tos 0x0, ttl 128, id 41968, offset 0, flags [none], proto UD                                                                              P (17), length 61)
    MannyPC.63893 > 192.168.0.255.19132: UDP, length 33
10:36:38.099065 IP (tos 0x0, ttl 64, id 8334, offset 0, flags [DF], proto UDP (1                                                                              7), length 151)
    ubuntu.19132 > MannyPC.63893: UDP, length 123


from docker-minecraft-bedrock-server.

emanual4real avatar emanual4real commented on August 23, 2024

It's working now. Thanks for your help itzg. All I'm willing to say about the fix is check for typos.

from docker-minecraft-bedrock-server.

itzg avatar itzg commented on August 23, 2024

Excellent! I'm really curious what the typo was :)

from docker-minecraft-bedrock-server.

emanual4real avatar emanual4real commented on August 23, 2024

In minecraft application, the server IP address was incorrect (192.108 vs 192.168). I promise it was right at one point in this whole process!

Thanks again!

from docker-minecraft-bedrock-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.