PassTheMayo / minecraft-server-util

A Node.js library for Minecraft servers that can retrieve status, query, RCON, and send Votifier votes.
https://passthemayo.gitbook.io/minecraft-server-util/
MIT License
141 stars 24 forks source link

The new kind #73

Closed KazakEz closed 2 years ago

KazakEz commented 2 years ago

/closed

PassTheMayo commented 2 years ago

This is already really simple to do with the use of the built in Node.js dns package. You can read more about it here: https://nodejs.org/api/dns.html#dnsresolvesrvhostname-callback. There are guides online for how Minecraft reads SRV records.

KazakEz commented 2 years ago

This is already really simple to do with the use of the built in Node.js dns package. You can read more about it here: https://nodejs.org/api/dns.html#dnsresolvesrvhostname-callback. There are guides online for how Minecraft reads SRV records.

can't get port of domain

PassTheMayo commented 2 years ago

The port for the domain is the same as the port you use to connect to the domain for status. It should be used in the resolve string like: _minecraft._tcp.play.hypixel.net:25565. The port of the IP address returned from that is also included in the result.

KazakEz commented 2 years ago

The port for the domain is the same as the port you use to connect to the domain for status. It should be used in the resolve string like: _minecraft._tcp.play.hypixel.net:25565. The port of the IP address returned from that is also included in the result.

I want to do like in this bot Try ping the server: go.vimeevent.ru will not work because its real port is quite different 45.93.200.35:25630 изображение