-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot ping a Bedrock Server #2
Comments
Many! But first, thanks for trying out my MM Minecraft plugin. Let's start with the software on the box and work on anything on your MM box that might be getting in the way. Can you ping from the MM box to the Minecraft box? If that works, it eliminates basic networking problems, but if it fails, it doesn't necessarily mean much...firewalls can block ICMP like ping. Give "traceroute" a try if you know that. If there is an intermediate router between MM and Minecraft it'll let us know how far a packet can get. If these fail, there could be a firewall or something else blocking traffic from leaving the MM box, however unlikely that might be. If you have "nc" installed on the MM box, or want to install it, that's another way to check network connectivity. Something like Can you describe your network setup too? That can help iron out something strange. I.e., is your MM and Minecraft box on the same network segment? Separated by a router or switch? Is there a specific error message you're seeing in the MM logs that could shed some light on things? If MM-MinecraftStatus can't reach the Minecraft server, it prints an error message in the browser's console. If you're not familiar with that, we can run MM "serveronly" and connect from a regular FireFox or Chrome browser and look at the console logs for something specific. I'm sorry, but I don't know your general level of network savvy and if you've worked with a browser console before. Please write back and let me know what from above sounds good, and what you're unfamiliar with. I'll explain more in detail to get things moving! Don't worry, we'll figure this out. |
My day job has been in Operations so taking care of minor networking issues
won't scare me off.
Network Specs
Unifi Hardware: USG, Cloud Key1, and three switches.
vlans are in place. MagicMirror (Hardware is a Raspberry Pi 4) is on the
primary LAN network. Minecraft Bedrock Server is running off an older PC
with a fresh copy of Ubuntu Desktop installed. This device is running on
my kid vlan. Already using your MMM-MinecraftStatus to ping a Java Based
Minecraft Server (running off a another Raspberry Pi 4). This Java Server
PI is on the same vlan as the Bedrock Ubuntu server. MMM-MinecraftStatus
can see and report back on the Java Server without issue. I do have a
MMM-MinecraftStatus2 module created (I believe correctly) to report back on
the Ubuntu Bedrock Servers status.
Traceroute Results:
From Office PC to Server
C:\Users\RJDaPirate>tracert 192.168.50.23
Tracing route to 192.168.50.23 over a maximum of 30 hops
1 <1 ms <1 ms <1 ms 192.168.1.1
2 <1 ms <1 ms <1 ms 192.168.50.23
Trace complete.
From Raspberry Pi 4 currently hosting MagicMirror2
pi@raspberrypi:~ $ sudo traceroute 192.168.50.23
traceroute to 192.168.50.23 (192.168.50.23), 30 hops max, 60 byte packets
1 192.168.1.1 (192.168.1.1) 0.346 ms 0.441 ms 0.582 ms
2 192.168.50.23 (192.168.50.23) 5.243 ms 5.351 ms 5.429 ms
Tried my best but I cannot figure out how to send the echo "hithere".
Could you please explain that procedure in greater details. Dr Google was
no help to me.
Error message is "connection refused".
Thank you and have a wonderful day,
*Ryan Jones*
443-801-1974
…On Wed, Sep 16, 2020 at 11:21 PM Rich Alberth ***@***.***> wrote:
Many! But first, thanks for trying out my MM Minecraft plugin.
Let's start with the software on the box and work on anything on your MM
box that might be getting in the way.
Can you ping from the MM box to the Minecraft box? If that works, it
eliminates basic networking problems, but if it fails, it doesn't
necessarily mean much...firewalls can block ICMP like ping.
Give "traceroute" a try if you know that. If there is an intermediate
router between MM and Minecraft it'll let us know how far a packet can get.
If these fail, there could be a firewall or something else blocking
traffic from leaving the MM box, however unlikely that might be.
If you have "nc" installed on the MM box, or want to install it, that's
another way to check network connectivity. Something like echo "hithere"
| nc 1.2.3.4 567 where 1.2.3.4 is the Minecraft box and 567 is the port
the Minecraft software is listening on. That'll use plain TCP to connect.
Can you describe your network setup too? That can help iron out something
strange. I.e., is your MM and Minecraft box on the same network segment?
Separated by a router or switch?
Is there a specific error message you're seeing in the MM logs that could
shed some light on things? If MM-MinecraftStatus can't reach the Minecraft
server, it prints an error message in the browser's console. If you're not
familiar with that, we can run MM "serveronly" and connect from a regular
FireFox or Chrome browser and look at the console logs for something
specific.
I'm sorry, but I don't know your general level of network savvy and if
you've worked with a browser console before. Please write back and let me
know what from above sounds good, and what you're unfamiliar with. I'll
explain more in detail to get things moving!
Don't worry, we'll figure this out.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQZO3NTFZAIWQHCI6KONPHDSGF6EFANCNFSM4RPR7MKA>
.
|
Here's a brain dump from our phone call this evening. Hopefully your networking friend can think of something useful! SetupNetworks192.168.1.* ("cove") 192.168.50.* ("scallywag") "Officers" There are other networks with kid's kindles and so on. Router Rules
ServersMinecraft Bedrock Server Minecraft Java Server MagicMirror Desktop PC GoalGet MagicMirror box to connect to Bedrock Minecraft server. The MagicMirror software wants to check if Bedrock server is running Minecraft by checking it's port, 19132. Status
Troubleshooting
Everything above is consistent with the Minecraft Bedrock server having trouble starting up, resulting in all connection attempts being "connection refused". However, the iPad continues to be able to connect. Next Steps
Conclusion so farIt's cold comfort, but this isn't a MagicMirror or MM-MinecraftStatus problem, since command-line things like telnet also can't connect to the port on the Bedrock server. Let's get connectivity at the OS working first, then see if MagicMirror has any problems. Cheers! |
Update from our troubleshooting session on Saturday night. My friend (Joel) was able to confirm a programming language difference between the Bedrock server and MMM-MINECRAFTSTATUS. He will reply back in greater detail but I would be willing to serve as lab rat while this script is updated or a new one is created.
A computer programmer I am not but I’m pretty good at testing and documenting results.
Ryan Jones
Sent from my iPad
… On Sep 18, 2020, at 11:32 PM, Rich Alberth ***@***.***> wrote:
Here's a brain dump from our phone call this evening. Hopefully your networking friend can think of something useful!
Setup
Networks
192.168.1.* ("cove")
Main network with MagicMirror box, desktop PC, and the printers.
192.168.50.* ("scallywag")
Network with both Minecraft servers, reserved for kid-oriented servers.
"Officers"
Separate network with iPad and parent devices.
There are other networks with kid's kindles and so on.
Router Rules
Cove can connect to scallywag
Officers can connect to scallywag
Scallywag cannot connect to Cove or Officers
Servers
Minecraft Bedrock Server
IP 192.168.50.23, mask 255.255.255.0. Ubuntu box running Bedrock. Lives on Scallywag network.
Minecraft Java Server
IP 192.168.50.22, mask 255.255.255.0. Pi running Bukkit Minecraft server. Lives on Scallywag.
MagicMirror
IP 192.168.1.9, mask 255.255.255.0. Runs Magic Mirror, lives on Cove.
Desktop PC
Windows PC also on Cove.
Goal
Get MagicMirror box to connect to Bedrock Minecraft server. The MagicMirror software wants to check if Bedrock server is running Minecraft by checking it's port, 19132.
Status
iPad on Officers network can connect to Minecraft on Bedrock server. Double-checked it's using 192.168.50.23 and port 19132
MagicMirror cannot connect to Minecraft on Bedrock server.
Troubleshooting
We have network connectivity from MagicMirror to Bedrock server, and it routes through the router since they are on different networks (.1. to .50.):
tracert 192.168.50.23 shows 192.168.1.1 and then 192.168.50.23.
Bedrock server rejects attempts to connect to port 19132 from MagicMirror:
telnet 192.168.50.32 19132 gives "connection refused"
so, packets are reaching the host, but the host is rejecting the connection attempt saying that there is no such open port on the server.
Confirmed that port 19132 is not listening on the Bedrock server:
netstat -ant | grep 19132 shows nothing.
Further netstat commands confirm it's not open.
Repeat the test from Minecraft Java Server since it is also on the .50. network. This eliminates something strange with the router:
telnet 192.168.50.23 19132 also gives "connection refused"
Confirms packets can reach the Bedrock server and that there is nothing listening on that port.
Confirm Minecraft is running on the Bedrock server first hand by bounding it locally:
sudo systemctl restart minecraft (or something close to that), confirmed it restarted.
Same result as above, "connection refused". netstat still shows nothing listening on port 19132.
Messed around with firewall rules on the router, but same result.
Confirm Minecraft is trying to listen on 19132: more server.properties on the Bedrock server and saw server.port=19132` entry confirming it.
Everything above is consistent with the Minecraft Bedrock server having trouble starting up, resulting in all connection attempts being "connection refused". However, the iPad continues to be able to connect.
Next Steps
Repeat everything above?
Spend more time understanding why the iPad works, look at config, how it logs-in, etc.
Dump whatever you find in here if you get stuck. Maybe it'll trigger something else in my brain to look at.
Conclusion so far
It's cold comfort, but this isn't a MagicMirror or MM-MinecraftStatus problem, since command-line things like telnet also can't connect to the port on the Bedrock server. Let's get connectivity at the OS working first, then see if MagicMirror has any problems.
Cheers!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I didn't know Bedrock server existed before you created this issue. When you have more info, let me know. I'm happy to update the MagicMirror module to handle this too! |
Hey Joel, Any chance you could reply back with the programming language
differences you noticed?
Thank you and have a wonderful day,
*Ryan Jones*
443-801-1974
…On Mon, Sep 21, 2020 at 8:22 AM Rich Alberth ***@***.***> wrote:
I didn't know Bedrock server existed before you created this issue. When
you have more info, let me know. I'm happy to update the MagicMirror module
to handle this too!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQZO3NUX6B3HPX2CS227TKLSG5APVANCNFSM4RPR7MKA>
.
|
Ryan,
I’d be happy to.
It’s been a few days since I was looking at the situation but the network & installation seemed fine, the reason Ryan’s setup isn’t working I think traces back to the MM, its module or maybe the dependency that the module uses to run queries.
What caught my attention was that MMM-MinecraftStatus depends on Minecraft-ping which according to the npm page was last published 5 years ago- before bedrock came out. I suppose it’s possible that the node package is capable of talking with bedrock if the API didn’t change but that’s sort of a rabbit hole. The behavior I saw was that the MM service was only ever trying to connect to Minecraft via TCP and nothing I found indicated a way to swap it over to UDP. If there’s some way to get MM to hit the right socket then maybe it’s just that easy.
Anyway, that’s what I noticed when I went over there. You guys were just missing the service when you were querying for it since telnet is tcp only and without the -u netstat is likewise only going to show tcp connections. As a suggestion, nmap is a clean way to check connectivity and running tcpdump can pretty quickly show you what sort of traffic is flowing between nodes. Regardless, good luck to you!
Thanks,
Joel
From: Ryan Jones <[email protected]>
Date: Thursday, September 24, 2020 at 7:48 PM
To: ralberth/MMM-MinecraftStatus <[email protected]>, Joel Callicrate <[email protected]>
Subject: Re: [ralberth/MMM-MinecraftStatus] Cannot ping a Bedrock Server (#2)
Hey Joel, Any chance you could reply back with the programming language differences you noticed?
Thank you and have a wonderful day,
Ryan Jones
443-801-1974
On Mon, Sep 21, 2020 at 8:22 AM Rich Alberth <[email protected]<mailto:[email protected]>> wrote:
I didn't know Bedrock server existed before you created this issue. When you have more info, let me know. I'm happy to update the MagicMirror module to handle this too!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#2 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQZO3NUX6B3HPX2CS227TKLSG5APVANCNFSM4RPR7MKA>.
|
Wow, you probably found it! We were looking for a TCP connection and using tools to connect to an assumed TCP socket instead of sending plain UDP datagrams. The current MinecraftStatus certainly won't work with Bedrock, but this is a great feature to add. I'll get to it "soon" :-) I'm out this entire weekend, and next week sucks, but I'll get a feature out to handle it. Joel, THANK YOU for doing the work on your side and helping! |
Thank you my friend.
Have a great Day,
Ryan A. Jones
… On Sep 25, 2020, at 4:57 PM, J C ***@***.***> wrote:
Ryan,
I’d be happy to.
It’s been a few days since I was looking at the situation but the network & installation seemed fine, the reason Ryan’s setup isn’t working I think traces back to the MM, its module or maybe the dependency that the module uses to run queries.
What caught my attention was that MMM-MinecraftStatus depends on Minecraft-ping which according to the npm page was last published 5 years ago- before bedrock came out. I suppose it’s possible that the node package is capable of talking with bedrock if the API didn’t change but that’s sort of a rabbit hole. The behavior I saw was that the MM service was only ever trying to connect to Minecraft via TCP and nothing I found indicated a way to swap it over to UDP. If there’s some way to get MM to hit the right socket then maybe it’s just that easy.
Anyway, that’s what I noticed when I went over there. You guys were just missing the service when you were querying for it since telnet is tcp only and without the -u netstat is likewise only going to show tcp connections. As a suggestion, nmap is a clean way to check connectivity and running tcpdump can pretty quickly show you what sort of traffic is flowing between nodes. Regardless, good luck to you!
Thanks,
Joel
From: Ryan Jones ***@***.***>
Date: Thursday, September 24, 2020 at 7:48 PM
To: ralberth/MMM-MinecraftStatus ***@***.***>, Joel Callicrate ***@***.***>
Subject: Re: [ralberth/MMM-MinecraftStatus] Cannot ping a Bedrock Server (#2)
Hey Joel, Any chance you could reply back with the programming language differences you noticed?
Thank you and have a wonderful day,
Ryan Jones
443-801-1974
On Mon, Sep 21, 2020 at 8:22 AM Rich Alberth ***@***.***> wrote:
I didn't know Bedrock server existed before you created this issue. When you have more info, let me know. I'm happy to update the MagicMirror module to handle this too!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I stand ready to be the lab rat.
Have a great Day,
Ryan A. Jones
… On Sep 25, 2020, at 6:18 PM, Rich Alberth ***@***.***> wrote:
Wow, you probably found it! We were looking for a TCP connection and using tools to connect to an assumed TCP socket instead of sending plain UDP datagrams.
The current MinecraftStatus certainly won't work with Bedrock, but this is a great feature to add. I'll get to it "soon" :-)
I'm out this entire weekend, and next week sucks, but I'll get a feature out to handle it.
Joel, THANK YOU for doing the work on your side and helping!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I did some research. According to the BDS wiki on gamepedia.com,
The main BDS download page on minecraft.net says this is an early alpha release for evaluation only. So, I'm not surprised there isn't support for it in the usual libraries yet. I posted to Reddit's /r/MCPE asking about similar BDS libraries. Let's wait and see if there is something out there, or other ideas before we go further. |
Copy that
Have a great Day,
Ryan A. Jones
… On Oct 1, 2020, at 9:26 PM, Rich Alberth ***@***.***> wrote:
I did some research. According to the BDS wiki on gamepedia.com,
BDS uses UDP
BDS is Alpha software
No RCON
No libraries for remote control
The main BDS download page on minecraft.net says this is an early alpha release for evaluation only.
So, I'm not surprised there isn't support for it in the usual libraries yet.
I posted to Reddit's /r/MCPE asking about similar BDS libraries. Let's wait and see if there is something out there, or other ideas before we go further.
https://www.reddit.com/r/MCPE/comments/j3lhdh/rcon_to_bedrock_or_other_way_to_query_from_remote/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Ugh, no replies on the reddit post after over a week. I posted on the Minecraft #technical-bedrock Discord group, but didn't get anywhere. I think this will have to be a feature request and sit for a while until we get more community over time that contributes to plugins, etc. that can handle this. Sorry for the dead-end right now. I'll leave the issue open so it gets attention from time-to-time, and see if I can find some support in the future. Cheers! |
I've tried both Minecraft related MagicMirror2 modules and neither can ping my in-house Minecraft Bedrock server. Do you have any idea on why this would be the case?
The text was updated successfully, but these errors were encountered: