Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-237608

Server address shown when connection fails during server startup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18 Pre-release 2
    • 1.17.1
    • None
    • Confirmed
    • Networking
    • Important

      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.

            slicedlime [Mojang] slicedlime
            jakobk Jakob K
            Votes:
            22 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: