2

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

BryanChung's Avatar BryanChung8/18/19 4:37 am
8/19/2019 9:41 am
Star Craft Network's Avatar Star Craft Network
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 BryanChung's Avatar
BryanChung
Level 10 : Journeyman Miner
0

Create an account or sign in to comment.

11

3
08/18/2019 6:39 amhistory
Level 53 : Grandmaster uwu
Eclipse
Eclipse's Avatar
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)
2
08/18/2019 7:21 am
Level 10 : Journeyman Miner
BryanChung
BryanChung's Avatar
But that's just the file naming isn't it? :D
3
08/18/2019 8:17 am
Level 1 : New Miner
rudderz243
rudderz243's Avatar
When you launch the server from the batch file and command prompt comes up, what all do you see? The usual Minecraft server console?
3
08/18/2019 8:21 am
Level 10 : Journeyman Miner
BryanChung
BryanChung's Avatar
Yes. Everything looks normal. But just my friends cannot connect it. But when I launch the server.jar file directly, they can.
3
08/18/2019 8:41 amhistory
Level 1 : New Miner
rudderz243
rudderz243's Avatar
Do you have the correct Java file under allowed apps in the Firewall?
2
08/18/2019 8:45 am
Level 10 : Journeyman Miner
BryanChung
BryanChung's Avatar
I'm pretty sure I have though. I can check it.
3
08/18/2019 10:26 am
Level 1 : New Miner
rudderz243
rudderz243's Avatar
Double check quickly, but if you're not too sure, I can help you choose the right one
2
08/18/2019 10:34 am
Level 10 : Journeyman Miner
BryanChung
BryanChung's Avatar
Oh yes! Is my firewall. Thanks! :D Haha!
2
08/19/2019 9:41 am
Level 44 : Master Network
Star Craft Network
Star Craft Network's Avatar
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/19/2019 9:39 am
Level 44 : Master Network
Star Craft Network
Star Craft Network's Avatar
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 )
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome