XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • 1.16.5
    • None
    • FreeBSD 12.2 or FreeBSD 13.0
      openjdk16
    • Unconfirmed
    • (Unassigned)

      When launching Minecraft server jar on FreeBSD there seems no way to make it listen to IPv6. With the default settings in server.properties it exclusively listens on tcp4.

      With a setting like this:

      I found no way at all to set the a listening IPv6 address in server.properties. I tried values like:

      • ::
      • [::]
      • 2a00:123::1
      • [2a00:123::1]

      They all end in a crash with such error:

      [18:17:23] [Server thread/INFO]: Starting Minecraft server on [::]:25565
      [18:17:23] [Server thread/INFO]: Using default channel type
      [18:17:23] [Server thread/ERROR]: Encountered an unexpected exception
      java.nio.channels.UnsupportedAddressTypeException: null
       at sun.nio.ch.Net.checkAddress(Net.java:161) ~[?:?]
       at sun.nio.ch.ServerSocketChannelImpl.netBind(ServerSocketChannelImpl.java:330) ~[?:?]
       at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:294) ~[?:?]
       at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:128) ~[server.jar:?]
       at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:558) ~[server.jar:?]
       at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1358) ~[server.jar:?]
       at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:501) ~[server.
      jar:?]
       at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:486) ~[server.jar:?]
       at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:1019) ~[server.jar:?]
       at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:254) ~[server.jar:?]
       at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:366) ~[server.jar:?]
       at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) ~[server.jar:?]
       at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) ~[server
      .jar:?]
       at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:465) ~[server.jar:?]
       at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) ~[server.jar:?
      ]
       at java.lang.Thread.run(Thread.java:831) [?:?]
      [18:17:23] [Server thread/ERROR]: This crash report has been saved to: /usr/home/jochen/mctest/./crash-reports/crash-2
      021-05-16_18.17.23-server.txt
      [18:17:23] [Server thread/INFO]: Stopping server
      [18:17:23] [Server thread/INFO]: Saving worlds
      [18:17:23] [Server thread/ERROR]: Exception stopping the server
      java.lang.NullPointerException: Cannot invoke "aag.f()" because "?" is null
       at net.minecraft.server.MinecraftServer.a(SourceFile:572) ~[server.jar:?]
       at net.minecraft.server.MinecraftServer.t(SourceFile:599) ~[server.jar:?]
       at zg.t(SourceFile:567) ~[server.jar:?]
       at net.minecraft.server.MinecraftServer.w(SourceFile:707) ~[server.jar:?]
       at net.minecraft.server.MinecraftServer.a(SourceFile:257) ~[server.jar:?]
       at java.lang.Thread.run(Thread.java:831) [?:?]

      In contrast to FreeBSD Linux seems to have full IPv6 support, so please also support FreeBSD for IPv6 connections.

            Unassigned Unassigned
            junikadabra Juni Kadabra
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: