FragLand / minestat

:chart_with_upwards_trend: A Minecraft server status checker
GNU General Public License v3.0
352 stars 71 forks source link

Support ipv6 and address without port #237

Open nimeng1299 opened 3 months ago

nimeng1299 commented 3 months ago

Feature Description

* in CSharp If query ipv6 server

MineStat ms = new MineStat("2ff8:82c6:3572:1473:1778:1234:ffc7:dfd7", 25565);

ms.ServerUp is false

and MineStat need a address and port,but sometimes the server hides the port, like aa.top

mindsolve commented 3 months ago

Hi @nimeng1299 and welcome to MineStat!

You are correct that some of the MineStat variants do not support IPv6 at the moment. Thank you for the feature request.

To the second part of your question: There are two ways to "hide" the server port. Either its just the default port (25565), or its based on SRV DNS records. We do not have SRV support in C# at the moment, as that would require external dependencies, which we are trying to avoid, if possible. See #142 for future progress.

I've created issue #238 to make the port in C# optional, as in other language editions.