Forumskeyboard_arrow_right Help keyboard_arrow_right Servers

Create Forum Thread
2

"Connection Timed Out" when I launch server with .bat file

2 emeralds11 replies90 views
created 08/18/2019 4:37 am by BryanChung
last reply 08/19/2019 9:41 am
Hi everyone! So I created a Minecraft server. When I run server.jar, my friends can connect in without problem. But when I run the .bat file to launch the server, they are unable to connect in even though the server is up and running. What can be the fault of this?

the startServer.bat only has one line:



java -Xmx4096M -Xms4096M -jar server.jar


Please advise


Because if I run server.jar directly, then I cannot set the amount of RAM I want it to use.
Posted by avatar
BryanChung
Level 9 : Apprentice Miner
0

comment Login or register to post a reply.

11 replies

1
08/19/2019 9:39 am
Level 12 : Journeyman Network
Star Craft Network
Try changing

java -Xmx4096M -Xms4096M -jar server.jar

To

java -Xmx4G -Xms2G -jar server.jar

Make sure the Jar file name you are refrencing is correct, also make sure to download the latest JRE ( Java 8 I believe )
2
08/18/2019 8:17 am
Level 1 : New Miner
rudderz243
When you launch the server from the batch file and command prompt comes up, what all do you see? The usual Minecraft server console?
2
08/18/2019 8:21 am
Level 9 : Apprentice Miner
BryanChung
Yes. Everything looks normal. But just my friends cannot connect it. But when I launch the server.jar file directly, they can.
1
08/19/2019 9:41 am
Level 12 : Journeyman Network
Star Craft Network
Have you forwarded your IP and ports through your default gateway? Also you need to allow traffic for the ports your using in your firewall settings
2
08/18/2019 8:41 amhistory
Level 1 : New Miner
rudderz243
Do you have the correct Java file under allowed apps in the Firewall?
1
08/18/2019 8:45 am
Level 9 : Apprentice Miner
BryanChung
I'm pretty sure I have though. I can check it.
2
08/18/2019 10:26 am
Level 1 : New Miner
rudderz243
Double check quickly, but if you're not too sure, I can help you choose the right one
1
08/18/2019 10:34 am
Level 9 : Apprentice Miner
BryanChung
Oh yes! Is my firewall. Thanks! :D Haha!
2
08/18/2019 6:39 amhistory
Level 32 : Artisan Magical Girl
-Eclipse-
i don't know if this has anything to do with it.. but isn't it supposed to be start.bat instead of startServer.bat?? Idk (tell me if i am wrong, because i am not sure)
1
08/18/2019 7:21 am
Level 9 : Apprentice Miner
BryanChung
But that's just the file naming isn't it? :D

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome