Problem Server with mods

  • Tech Support section is for getting help with FTB related problems. If there's a repeatable issue that can be labeled as a bug, then please use the issue tracker for the pack or the app at GitHub issue trackers - If there's no repository for a pack that means that the pack is old and/or will not be updated. Bugs for older packs will not be fixed, unless they are critical.
  • FTB will be shutting down this forum by the end of July. To participate in our community discussions, please join our Discord! https://ftb.team/discord

DaniBBQ

New Member
Dec 22, 2020
2
0
2
Hello, I and my friends have created a server with mods hosted by me and it closed out that the next day it did not start until I could keep it open and I got this:

C: \ Users \ USER.DESKTOP-BUTK0HI \ Desktop \ Server Minecraft Mods 1.12.2> java -Xms5120M -Xmx6144M -jar minecraft_server.1.12.2.jar nogui [13:09:49] [Server thread / INFO]: Starting minecraft server version 1.12.2 [13:09:49] [Server thread / INFO]: Loading properties [13:09:49] [Server thread / INFO]: Default game type: SURVIVAL [13:09:49] [Server thread / INFO]: Generating keypair [13:09:49] [Server thread / INFO]: Starting Minecraft server on hdp1x3l5.serveminecraft.net:25565 [13:09:49] [Server thread / INFO]: Using default channel type [13:09:50] [Server thread / WARN]: **** FAILED TO BIND TO PORT! [13:09:50] [Server thread / WARN]: The exception was: java.net.BindException: Cannot assign requested address: bind [13:09:50] [Server thread / WARN]: Perhaps a server is already running on that port? [13:09:50] [Server thread / INFO]: Stopping server [13:09:50] [Server Shutdown Thread / INFO]: Stopping server

C: \ Users \ USER.DESKTOP-BUTK0HI \ Desktop \ Server Minecraft Mods 1.12.2> pause Press a key to continue . . .
 

Attachments

  • Capture.png
    Capture.png
    34.9 KB · Views: 102
Last edited:

DaniBBQ

New Member
Dec 22, 2020
2
0
2
Update: I noticed I put in the code line of the .bat file :

java -Xms5120M -Xmx6144M -jar minecraft_server.1.12.2.jar nogui
pause

instead of:

java -Xms5120M -Xmx6144M -forge-1.12.2-14.23.5.2854.jar nogui
pause

and this happened:

C:\Users\USER.DESKTOP-BUTK0HI\Desktop\Server Minecraft Mods 1.12.2>java -Xms5120M -Xmx6144M -forge-1.12.2-14.23.5.2854.jar nogui
Unrecognized option: -forge-1.12.2-14.23.5.2854.jar
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Any idea?
 

Attachments

  • Capture1.png
    Capture1.png
    17.3 KB · Views: 80

MoparDan

Member
Jul 29, 2019
15
3
15
Issue #1: [13:09:50] [Server thread / WARN]: **** FAILED TO BIND TO PORT!
This right here tells you what was wrong, and the log even explains that error further down... " [13:09:50] [Server thread / WARN]: Perhaps a server is already running on that port?"

That error simply means that *something* is using the port that was assigned to it, in this case 25565, so being that port was in use, it couldnt 'claim' that port for itself, resulting in the server failing to start. Now, instead of fixing one issue, you compounded it by creating another issue by changing the bat file....

Issue #2: Unrecognized option: -forge-1.12.2-14.23.5.2854.jar
I think the setting you were looking for was this:

java -Xms5120M -Xmx6144M -jar forge-1.12.2-14.23.5.2854.jar

That is, assuming "forge-1.12.2-14.23.5.2854.jar" is the server file modified for running forge mods.


Now, yes, I understand that you caught the fact that the bat file was set to launch vanilla MC and not forge modded MC, but the 1st step should have been to figure out why the vanilla server was not launching before changing other files, because if the vanilla MC server was not launching, then a modified one would definitely not launch.