mojira.dev
MC-301830

Changing network causes servers using SRV records to not work

Changing the Windows network adapter used for internet, i.e switching from WIFI to plugging in ethernet, when Minecraft is open. Causes servers on the Multiplayer screen to no longer ping or connect.

I did some digging and found this issue didn’t exist in 1.21 and only effects servers using SRV records, not on the default 25565 port. It seems when the network is used, the SRV record is ignored and MC tries to use port 25565, this causes servers to fail like hypixel.net

Restarting MC fixes the problem, after you’ve changed to using a different Windows network adapter from which you started MC with.

I have used Windows’s nslookup command and it does know the SRV record exists, so it is not a Windows problem, rather a Minecraft one as the issue goes away if using Minecraft 1.21

Steps to reproduce:

  1. Add a server that uses a _minecraft SRV record like hypixel.net to the multiplayer server list. Server will ping fine and you’ll see the server MOTD and be able to connect fine.

  2. Change the Windows network adapter used for internet, so unplug your ethernet cable and switch to using WIFI, or vice versa, make sure you still actually have internet.

  3. Refresh the server list

  4. Server will no longer ping and you wont be able to connect to the server.

Expected result:
After refreshing the server list, should still be able to see the servers MOTD in the server list, should still be able to connect and Minecraft should not ignore the SRV DNS record. As it does in version 1.21

Actual result:
If the server does not use an SRV record, and instead just uses a CNAME or A record and the server is hosted on port 25565. (OR if you specifiy the servers port in the server address, if server is not using 25565) Then changing the network adapter will have no effect.

Environment

Windows 11, Minecraft 1.21.8

Comments 1

We do not have enough information to find the cause of this issue.

Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

flyncodes

(Unassigned)

Unconfirmed

(Unassigned)

1.21.8

Retrieved