2
"Connection Timed Out" when I launch server with .bat file
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:
Please advise
Because if I run server.jar directly, then I cannot set the amount of RAM I want it to use.
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.
Create an account or sign in to comment.
11
3
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
But that's just the file naming isn't it? :D
3
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
Yes. Everything looks normal. But just my friends cannot connect it. But when I launch the server.jar file directly, they can.
3
Do you have the correct Java file under allowed apps in the Firewall?
2
I'm pretty sure I have though. I can check it.
3
Double check quickly, but if you're not too sure, I can help you choose the right one
2
Oh yes! Is my firewall. Thanks! :D Haha!
view more replies ( 1 )
2
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
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 )
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 )