i tried both and when i put it into terminal it said cannot execute binary file.
it shouldn't be a binary file, should be a file ending in .jar. Theres two minecraft_Server files on the download page, one is an .exe and one is a .jar (way at the bottom). Did you download the minecraft_Server.exe or minecraft_SErver.jar?
Hello, when I did this nothing worked. When I put the .jar in the minecraft folder and opened it it just did this
[INFO] Starting minecraft server version 0.2.5
[WARNING] **** NOT ENOUGH RAM!
[WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
[INFO] Loading properties
[INFO] Starting Minecraft server on *:25565
[WARNING] **** FAILED TO BIND TO PORT!
[WARNING] The exception was: java.net.BindException: Address already in use
[WARNING] Perhaps a server is already running on that port?
Um, I am working off of my fathers computer and it won't let me run .command files. What should I do?
you typed chmod +x *path to the .command file* then tried opening it?
Quote from Miskov »
Hello, when I did this nothing worked. When I put the .jar in the minecraft folder and opened it it just did this
[INFO] Starting minecraft server version 0.2.5
[WARNING] **** NOT ENOUGH RAM!
[WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
[INFO] Loading properties
[INFO] Starting Minecraft server on *:25565
[WARNING] **** FAILED TO BIND TO PORT!
[WARNING] The exception was: java.net.BindException: Address already in use
[WARNING] Perhaps a server is already running on that port?
And I'm not running another server.
Perhaps another application is using that port, have you tried editing the port to a different number and see what happens?
I also got this error when I put the external ip address for the ip address in server.properties, altho that doesn't seem to be the problem here.
Um, I am working off of my fathers computer and it won't let me run .command files. What should I do?
you typed chmod +x *path to the .command file* then tried opening it?
Sorry, I meant type chmox+x in terminal! Sorry X_X
Quote from Troels »
Last login: Tue Nov 30 20:23:14 on ttys000
Troels-Gregersens-iMac:~ TroelsGregersen$ /Users/TroelsGregersen/Desktop/Minecraft/BootAlphaServer.command
Exception in thread "main" java.lang.NoClassDefFoundError: ?Xmx1024M
Caused by: java.lang.ClassNotFoundException: ?Xmx1024M
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
this is what i get when triying to start up the command. What to do
That java error is gobblygook as much as it is to you since I dont know anything about java. However, my eye catches
Exception in thread "main" java.lang.NoClassDefFoundError: ?Xmx1024M
can you PM me or copy and paste whats in your BootAlphaServer.command file? My guess is that Xmx1024 is written wrong (maybe a letter that is supposed to be capitalized isnt?)
I followed your guide and when I open the .command file I get this
/Users/______/Desktop/Curtis\'\ saved\ games\ folder/minecraft/smp\ data/boot.command ; exit;
__________:~ ______$ /Users/______/Desktop/Curtis\'\ saved\ games\ folder/minecraft/smp\ data/boot.command ; exit;
Unable to access jarfile minecraft_server.jar
logout
I followed your guide and when I open the .command file I get this
/Users/______/Desktop/Curtis\'\ saved\ games\ folder/minecraft/smp\ data/boot.command ; exit;
__________:~ ______$ /Users/______/Desktop/Curtis\'\ saved\ games\ folder/minecraft/smp\ data/boot.command ; exit;
Unable to access jarfile minecraft_server.jar
logout
[Process completed]
And it won't open the server.
So that unable to access jarfile means it cant find the jarfile. Somebody else is having this problem too.
Which probably means the filepath inside boot.command has a typo in it or your minecraft_server.jar is spelled differently. You might want to double check to see if your filepath to your folder holding minecraft_server.jar is correct.
If you edited the filepath in boot.command yourself, you need to have backslashes for spaces in terminal like
smp\ data
not
smp data
Or just drag the folder containing minecraft_server.jar into terminal and copy and paste that into your boot.command.
Let me know if it still cant access the .jar file.
Hello Swook. I have read your guide and have found setting up a server on a Mac to be fairly simple once I understood how to do so. I am still having trouble, though, with the port forwarding. I understand that you admitted not having a lot of knowledge for this, but if anyone has tips on how to do so, please let me know!!
Oh, and one more thing, when I try to connect to the server by myself, this is what happens (every time, no matter what server!). All according to terminal:
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setTrafficClass(Socket.java:1215)
at bi.<init>(SourceFile:48)
at fr.<init>(SourceFile:30)
at di.run(SourceFile:34)
Hello Swook. I have read your guide and have found setting up a server on a Mac to be fairly simple once I understood how to do so. I am still having trouble, though, with the port forwarding. I understand that you admitted not having a lot of knowledge for this, but if anyone has tips on how to do so, please let me know!!
Well, I can tell you what I do know. The router part I cannot help with, but im sure with a little time with it you can find the port forwarding option. You will need a STATIC (un changing) ip address for your computer, to do this you have to go to System Preferences -> Network and depending on wether your connect by ethernet or airport, find "Using DHCP" in the same page as your ip adress, subnet mask and router address and select "Using DHCP with manual address" and set a manual ip address *Just use what you were using before* and click apply. Then in the port forwarding part of the router, it will ask for an ip to forward to, put the ip address you entered just before.
Also make sure to open the port 25565. Depending on the router it might take a while to actually apply.
If its still not working then I cant help you cause Im having a problem with a very stubborn port that will not open.
Quote from zman0728 »
Oh, and one more thing, when I try to connect to the server by myself, this is what happens (every time, no matter what server!). All according to terminal:
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setTrafficClass(Socket.java:1215)
at bi.<init>(SourceFile:48)
at fr.<init>(SourceFile:30)
at di.run(SourceFile:34)
Once again, any help is appreciated. Thank you!!
I dont know what that is. You have any mods on your server?
Well, I can tell you what I do know. The router part I cannot help with, but im sure with a little time with it you can find the port forwarding option. You will need a STATIC (un changing) ip address for your computer, to do this you have to go to System Preferences -> Network and depending on wether your connect by ethernet or airport, find "Using DHCP" in the same page as your ip adress, subnet mask and router address and select "Using DHCP with manual address" and set a manual ip address *Just use what you were using before* and click apply. Then in the port forwarding part of the router, it will ask for an ip to forward to, put the ip address you entered just before.
Ok, from what I saw on portfoward.com, it said to completely reset everything. Knowing that I do not have to do this should make setting up a static ip address much easier.
Quote from Swook »
I dont know what that is. You have any mods on your server?
No, I have not put any mods on the server. The Java Script I posted is what happens to me when I try to log on to any servers, including my own (when I was testing my incorrectly-done ports :SSSS:).
Thank you again for the post on setting up Mac servers, and I will let you know what happens when I re-attempt setting up my static ip address, port forwarding, etc.
Hmm...I am quite puzzled now. I was finally able to successfully open port 25565 (confirmed it online) and my AirPort Extreme acknowledged this. However, when I tried connecting to my active server from the other computer in my house (a Vista PC), it showed that I was logging in but, after about 30 seconds, that the connection timed out (took too long to log in). Does this mean that I do not have enough RAM, or something else? By the way, I did double my RAM in the beginning (from 1024 to 2048). Thanks again for your help, i don't know what is going on...
Hmm...I am quite puzzled now. I was finally able to successfully open port 25565 (confirmed it online) and my AirPort Extreme acknowledged this. However, when I tried connecting to my active server from the other computer in my house (a Vista PC), it showed that I was logging in but, after about 30 seconds, that the connection timed out (took too long to log in). Does this mean that I do not have enough RAM, or something else? By the way, I did double my RAM in the beginning (from 1024 to 2048). Thanks again for your help, i don't know what is going on...
Was this a fresh server? I know when I start on a new server map, everyone has issues logging in the first couple of times. 2gigs of RAM is PLENTY, I run mine on 1gig.
Also, my personal preference is that wireless is pretty sketchy and if you can, you should use a wired connection on your server. Perhaps you could get it work with wireless but I havent tried.
Was this a fresh server? I know when I start on a new server map, everyone has issues logging in the first couple of times. 2gigs of RAM is PLENTY, I run mine on 1gig.
Also, my personal preference is that wireless is pretty sketchy and if you can, you should use a wired connection on your server. Perhaps you could get it work with wireless but I havent tried.
Basically my guess is lag from the wireless.
Ok, I think that the fact I am trying to run the server wirelessly from my MacBook could be the problem...I did not think RAM was a logical reason for the server not working, just the only thing I could think of :Sheep:. I will try to connect my MacBook directly to the main router instead of AirPort, although this kind of takes away from the whole convenience part of it. Plus, I would need to reconfigure the port forwarding to the main router, which I have never attempted connecting to directly with my laptop. Oh well, thank you very much for your help, hopefully I can figure out what is causing this by just experimenting more with the network settings, etc.
Oh, and do you happen to know if there is a forum here that has information about general connectivity issues with Macs?
Ok, I think that the fact I am trying to run the server wirelessly from my MacBook could be the problem...I did not think RAM was a logical reason for the server not working, just the only thing I could think of :Sheep:. I will try to connect my MacBook directly to the main router instead of AirPort, although this kind of takes away from the whole convenience part of it. Plus, I would need to reconfigure the port forwarding to the main router, which I have never attempted connecting to directly with my laptop. Oh well, thank you very much for your help, hopefully I can figure out what is causing this by just experimenting more with the network settings, etc.
Oh, and do you happen to know if there is a forum here that has information about general connectivity issues with Macs?
Nope, you could count all the mac users here on one hand, we're kinda on our own. Its really why I made this guide.
Yea, sorry to break the bad news too you. But when it comes to running a server, wired is always the way to go. On the plus side long ethernet cables are cheap, I got a 50ft one for 20 bucks! I wish you the best of luck with your server!
Nope, you could count all the mac users here on one hand, we're kinda on our own. Its really why I made this guide.
Yea, sorry to break the bad news too you. But when it comes to running a server, wired is always the way to go. On the plus side long ethernet cables are cheap, I got a 50ft one for 20 bucks! I wish you the best of luck with your server!
Haha, yeah I forgot about that part in the original post :Pig:.
Well, it seems that the direct-connect ethernet option is the way to go, with the server already connected and all. The only problem is that I would need a cord of at least 60-65 feet...Do you know where I could get an even longer ethernet cord (I'll do some shopping around myself)? If not, I will just have to run the server near the router itself, which is not too much of an inconvenience now that I think about it.
Edit: I already found an ethernet cord on Amazon of 100 ft starting at $3.99! Of course, shipping always costs a lot extra, but hopefully I could get this for under $10.00!
Edit: I already found an ethernet cord on Amazon of 100 ft starting at $3.99! Of course, shipping always costs a lot extra, but hopefully I could get this for under $10.00!
Wow, that makes mine look like a total rip off xD!
But there you go! 100ft cable! :biggrin.gif:
You said not to put an ip address in server.properties but when I do put my external ip it workks....for me. But now for my friend on his computer.
no, leave it blank, you could get away with putting the external ip in there but not the internal ip. Im not sure how that works though, you cant bind ports to external ip addresses. It should give you a failed to bind to port error.
If you want to to connect you enter the internal ip of the server. Your friend enters the external ip to connect.
Not to seem like a downer (again) but unfortunately, directly connecting my laptop to the AirPort via Ethernet cable (we have a shorter one for the desktop) did not make a difference, and I was not able to successfully connect. I have absolutely no idea with what I should do now! I'll post up the terminal reading I showed Snook already a second time. Feel free to diagnose this!!
What my sever from terminal tells me after my attempted log-in:
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setTrafficClass(Socket.java:1215)
at bi.<init>(SourceFile:48)
at fr.<init>(SourceFile:30)
at di.run(SourceFile:34)
it shouldn't be a binary file, should be a file ending in .jar. Theres two minecraft_Server files on the download page, one is an .exe and one is a .jar (way at the bottom). Did you download the minecraft_Server.exe or minecraft_SErver.jar?
Totally New at running servers? Click me!
I wonder if sansavarous is online...
[INFO] Starting minecraft server version 0.2.5
[WARNING] **** NOT ENOUGH RAM!
[WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
[INFO] Loading properties
[INFO] Starting Minecraft server on *:25565
[WARNING] **** FAILED TO BIND TO PORT!
[WARNING] The exception was: java.net.BindException: Address already in use
[WARNING] Perhaps a server is already running on that port?
And I'm not running another server.
you typed chmod +x *path to the .command file* then tried opening it?
Perhaps another application is using that port, have you tried editing the port to a different number and see what happens?
I also got this error when I put the external ip address for the ip address in server.properties, altho that doesn't seem to be the problem here.
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Sorry, I meant type chmox+x in terminal! Sorry X_X
That java error is gobblygook as much as it is to you since I dont know anything about java. However, my eye catches
can you PM me or copy and paste whats in your BootAlphaServer.command file? My guess is that Xmx1024 is written wrong (maybe a letter that is supposed to be capitalized isnt?)
Totally New at running servers? Click me!
I wonder if sansavarous is online...
/Users/______/Desktop/Curtis\'\ saved\ games\ folder/minecraft/smp\ data/boot.command ; exit;
__________:~ ______$ /Users/______/Desktop/Curtis\'\ saved\ games\ folder/minecraft/smp\ data/boot.command ; exit;
Unable to access jarfile minecraft_server.jar
logout
[Process completed]
And it won't open the server.
So that unable to access jarfile means it cant find the jarfile. Somebody else is having this problem too.
Which probably means the filepath inside boot.command has a typo in it or your minecraft_server.jar is spelled differently. You might want to double check to see if your filepath to your folder holding minecraft_server.jar is correct.
If you edited the filepath in boot.command yourself, you need to have backslashes for spaces in terminal like
smp\ data
not
smp data
Or just drag the folder containing minecraft_server.jar into terminal and copy and paste that into your boot.command.
Let me know if it still cant access the .jar file.
Totally New at running servers? Click me!
I wonder if sansavarous is online...
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setTrafficClass(Socket.java:1215)
at bi.<init>(SourceFile:48)
at fr.<init>(SourceFile:30)
at di.run(SourceFile:34)
Once again, any help is appreciated. Thank you!!
Well, I can tell you what I do know. The router part I cannot help with, but im sure with a little time with it you can find the port forwarding option. You will need a STATIC (un changing) ip address for your computer, to do this you have to go to System Preferences -> Network and depending on wether your connect by ethernet or airport, find "Using DHCP" in the same page as your ip adress, subnet mask and router address and select "Using DHCP with manual address" and set a manual ip address *Just use what you were using before* and click apply. Then in the port forwarding part of the router, it will ask for an ip to forward to, put the ip address you entered just before.
Also make sure to open the port 25565. Depending on the router it might take a while to actually apply.
If its still not working then I cant help you cause Im having a problem with a very stubborn port that will not open.
I dont know what that is. You have any mods on your server?
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Ok, from what I saw on portfoward.com, it said to completely reset everything. Knowing that I do not have to do this should make setting up a static ip address much easier.
No, I have not put any mods on the server. The Java Script I posted is what happens to me when I try to log on to any servers, including my own (when I was testing my incorrectly-done ports :SSSS:).
Thank you again for the post on setting up Mac servers, and I will let you know what happens when I re-attempt setting up my static ip address, port forwarding, etc.
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Was this a fresh server? I know when I start on a new server map, everyone has issues logging in the first couple of times. 2gigs of RAM is PLENTY, I run mine on 1gig.
Also, my personal preference is that wireless is pretty sketchy and if you can, you should use a wired connection on your server. Perhaps you could get it work with wireless but I havent tried.
Basically my guess is lag from the wireless.
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Ok, I think that the fact I am trying to run the server wirelessly from my MacBook could be the problem...I did not think RAM was a logical reason for the server not working, just the only thing I could think of :Sheep:. I will try to connect my MacBook directly to the main router instead of AirPort, although this kind of takes away from the whole convenience part of it. Plus, I would need to reconfigure the port forwarding to the main router, which I have never attempted connecting to directly with my laptop. Oh well, thank you very much for your help, hopefully I can figure out what is causing this by just experimenting more with the network settings, etc.
Oh, and do you happen to know if there is a forum here that has information about general connectivity issues with Macs?
Nope, you could count all the mac users here on one hand, we're kinda on our own. Its really why I made this guide.
Yea, sorry to break the bad news too you. But when it comes to running a server, wired is always the way to go. On the plus side long ethernet cables are cheap, I got a 50ft one for 20 bucks! I wish you the best of luck with your server!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Haha, yeah I forgot about that part in the original post :Pig:.
Well, it seems that the direct-connect ethernet option is the way to go, with the server already connected and all. The only problem is that I would need a cord of at least 60-65 feet...Do you know where I could get an even longer ethernet cord (I'll do some shopping around myself)? If not, I will just have to run the server near the router itself, which is not too much of an inconvenience now that I think about it.
Edit: I already found an ethernet cord on Amazon of 100 ft starting at $3.99! Of course, shipping always costs a lot extra, but hopefully I could get this for under $10.00!
no, leave it blank, you could get away with putting the external ip in there but not the internal ip. Im not sure how that works though, you cant bind ports to external ip addresses. It should give you a failed to bind to port error.
If you want to to connect you enter the internal ip of the server. Your friend enters the external ip to connect.
Totally New at running servers? Click me!
I wonder if sansavarous is online...
What my sever from terminal tells me after my attempted log-in:
java.net.SocketException: Invalid argument
at java.net.PlainSocketImpl.socketSetOption(Native Method)
at java.net.PlainSocketImpl.setOption(PlainSocketImpl.java:264)
at java.net.Socket.setTrafficClass(Socket.java:1215)
at bi.<init>(SourceFile:48)
at fr.<init>(SourceFile:30)
at di.run(SourceFile:34)