Can't connect to Server via IPv6?

Discussion in 'Tech Support' started by cavedave, May 7, 2017.

  1. cavedave

    cavedave Guest

    Title Can't connect to Server via IPv6?

    Launcher Type Server

    Modpack Sky Factory 3

    Modpack version 3.0.8

    Have you modified the pack? No

    Link to log file

    Details of the issue Hello FTB-Community! :)
    Some friends and I have been running into an issue where I am running a server on my PC via the server files and none of us (or rather them) can't join via IPv6 (can't use IPv4 because of my ISP).
    The weird thing though is that this issue does not occur on vanilla minecraft and everyone can join via IPv6.
    Is there some kind of setting I can change in the server files so IPv6 is possible?

    Thank you all in advance!
  2. grandrolf

    grandrolf Popular Member Trusted User

    Can you please share your and /logs/fml-server-latest.log

    Do a copy/paste and use and give the links here.
  3. cavedave

    cavedave Guest

  4. Quetzi

    Quetzi Jack of All Trades Team Member Director of IT FTB Mod Dev

    Do you use a script to start your server? Can you paste it or the arguments you use to start your server.
  5. cavedave

    cavedave Guest

    I'm using the serverstart.bat that came with the server files.
        @if NOT "%FTB_VERBOSE%"=="yes" (
            @echo off
        call settings.bat
        if NOT EXIST %JARFILE% (
            goto install
        if NOT EXIST libraries\%LAUNCHWRAPPER% (
            goto install
        goto skipinstall
        echo running install script!
        call FTBInstall.bat
        REM Check if java in path
        REM TODO: use %JAVACMD%
        where java > NUL 2>&1
        if %ERRORLEVEL% NEQ 0 (
            echo No java binary in path. Can't run server, exiting...
            exit /B
        REM Test JVM
        REM e.g. 32-bit JVM does not have server\jvm.dll library
        java -server -version > java-test.log 2>&1
        if %ERRORLEVEL% NEQ 0 (
            echo Detected following JVM error:
            echo =======================================
            more java-test.log
            echo =======================================
            echo JVM test failed. Can't run server, Exiting...
            exit /B
        if not exist eula.txt (
            echo Missing eula.txt. Startup will fail and eula.txt will be created
            echo Make sure to read eula.txt before playing!
            goto startserver
        find "eula=false" eula.txt 1 > NUL 2>&1
        if %ERRORLEVEL% EQU 0 (
            echo Make sure to read eula.txt before playing! Exiting.
            exit /B
        del /f /q autostart.stamp > nul 2>1
        echo Starting server
        java -server -Xms%MIN_RAM% -Xmx%MAX_RAM% -XX:PermSize=%PERMGEN_SIZE% %JAVA_PARAMETERS% -jar %FORGEJAR% nogui
        if exist autostart.stamp (
            del /f /q autostart.stamp > nul 2>1
            echo If you want to completely stop the server process now, press Ctrl+C before the time is up!
            for /l %%i in (5,-1,1) do (
                echo Restarting server in %%i
                choice /t 1 /d y > nul
            echo Starting server now
            java -server -Xms%MIN_RAM% -Xmx%MAX_RAM% -XX:PermSize=%PERMGEN_SIZE% %JAVA_PARAMETERS% -jar %FORGEJAR% nogui
            echo Server process finished
            goto :server_loop
        echo Exiting...

    the settings.bat it calls for is the following:
    rem Do not touch
    set MCVER=1.10.2
    set JARFILE=minecraft_server.%MCVER%.jar
    set LAUNCHWRAPPER=net\minecraft\launchwrapper\%LAUNCHWRAPPERVERSION%\launchwrapper-%LAUNCHWRAPPERVERSION%.jar
    set FORGEJAR=FTBserver-1.10.2-
    rem can be changed by user
    set MIN_RAM=512M
    set MAX_RAM=3072M
    set PERMGEN_SIZE=256M
    set JAVA_PARAMETERS=-XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10

    Also I didn't alter either of those. Is there some kind of Java parameter I could use that would make the connection via IPv6 work?
    I just don't get, why vanilla works and the mod does not, in my unterstanding there would have to be something in the mod files that prevents the connection that way.

    I used spoiler and code to circumvent the validation of links, i hope thats okay since it basically leads to the same thing...
  6. Quetzi

    Quetzi Jack of All Trades Team Member Director of IT FTB Mod Dev

    You can try adding to the JAVA_PARAMETERS line in settings.bat, you may also need to add as well, if the first setting doesn't work by itself.

    Edit: Connecting clients may (probably) need to do this too
    Last edited: May 9, 2017
    grandrolf likes this.
  7. cavedave

    cavedave Guest

    Thank you so much, that did the trick! :)
    Some notes:
    Both parameters are necessary, but it was instead of, I saw this one when I was researching before making this thread and gave it a shot.
    I also tried leaving the parameters out on either end and oddly enough it is enough to add those parameters to the client, the server did not need them.

    Have a great day everyone!
    grandrolf likes this.

Share This Page