I'm trying to figure out how to scan for Minecraft lan games on a local network. When I open up the game itself, the scan happens very quickly and almost immediately returns a list of local ip's and their respective ports. However, I don't want to keep the game open in the background just to check for active ports, I'd like to do it with a script.

I tried to use nmap to scan for specific ports, but as far as I can tell, Minecraft games on lan have no set port range. It's too slow to scan every ip on the network on the tens of thousands ports that Minecraft can use.

The closest thing I've found to an answer is on this question, although I'm not sure how applicable it is based on the time period (4 years ago, and since then the game has gone over significant development) and the fact that I do not have to worry about multiple switches.

Also on my quest for research, I looked at something about broadcast packets. However, I'm not sure where to begin with this, or if this can even be used to work for my goals.

So my overall goal is to use (Linux) terminal to search for Minecraft games on my local network (lan). Really, any pointers on how to achieve this would be great, or if someone could just point me in the right direction. At least I now know that it is infeasible to use nmap.

Thanks! Let me know if I need to edit this question.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.