Mojira Archive
MC-237608

Server address shown when connection fails during server startup

When connecting to a server which has not yet finished its startup phase, you will get an AnnotatedConnectException from Netty. This exception contains the server ip.

This is unwanted, for example if a live streamer wants to connect to his private server and this server is in that specific startup phase, he will leak the server ip to all viewers.
This should be fixed, as a lot of live streamers want to hide the address of the server they are playing on from the public.

Structure of the message:

io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: server address here

Solution
This exception should probably be handled / catched and get its own custom error message. Additionally, it might be good to not pass any Netty exception and display it to the user.

Fixed

Jakob K

[Mojang] slicedlime

2021-09-25, 12:03 AM

2021-11-16, 12:20 PM

2021-11-16, 12:20 PM

22

8

Confirmed

Important

Networking

1.17.1

1.18 Pre-release 2