Posted March 21, 20205 yr Hello, I have a working Forge server 1.15.2 for minecraft (hosted locally on my PC) with mods that myself and a friend can join. However the server only has 256mb of RAM allocated. I found a simple way on youtube how to allocate more RAM using a "run.bat" file. Here is what my "run.bat" file looks like: java -Xms1024M -Xmx1024M -jar server.jar PAUSE The issue is now my friend cannot connect to the server after I allocate 1gb of RAM. I can still connect and play on the server though. Notes: -We are using hamachi. -I removed the run.bat file and used to default 256mb of RAM to host the server afterwards and my friend could connect once again. Edited March 21, 20205 yr by aussy
March 21, 20205 yr Is your run.bat file pointing to the right server file? is server.jar the same file you're executing when you don't use the .bat?
March 21, 20205 yr Author Yes it is pointing to the correct server file "server.jar". Yes the server.jar file is the file i used when i don't use the .bat file.
March 21, 20205 yr Hmm that's odd, batch files just tell windows to run that same file with the ability to use more system memory without actually changing the structure of the program. Are you using localhost to connect? Is he typing in the right stuff each time? Is there a specific error or is it just "timed out"? Maybe try creating a new hamachi server?
March 21, 20205 yr Also if you get it to work, add -nogui on the end of your first line before pause in the batch file. That will disable the white gui and you will notice a significant improvement in memory allocation.
March 21, 20205 yr Author -Im not sure how to tell if im using localhost host the connect. i'm using my IPV4 address in hamachi. -She is typing the correct IP Address. -The error message is "connection timed out. no further information". -We have tried 2 hamachi servers so far. -I have tried -nogui in the .bat file. Starting the server without the .bat file still works for her. Its just laggy and crashes after a minute or two.
March 21, 20205 yr Try looking at one of these: https://www.minecraftforum.net/forums/support/server-support-and/1937594-cant-connect-after-adding-bat-file
March 21, 20205 yr Author Issue Solved! Reason: Updated the .bat file from java to javaw (Java.exe doesnt work outside the firewall, Javaw.exe does) @echo off "C:\Program Files (x86)\Java\jre1.8.0_241\bin\javaw.exe" -Xms1024M -Xmx1024M -jar server.jar PAUSE Thank you for the time and help JonTNGN ❤️
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.