I see a lot of the same questions poping up around the forums about friends not being able to connect to their home hosted servers. Lots of people dont know anything about IPs and I want to try and clear the fog. In this thread I will try to address these problems with providing some networking basices.
If you networking gurus find any errors, please let me know :smile.gif:
First off, before continuing, find out if you can even host a server. Go here and enter in your computer specs. http://www.canihostaminecraftserver.com/
If you are unable to host, please reconsider hosting. Unless you are only planning on hosting for you, and a friend or two, your server will probably lag intensely.
Disclaimer: you must realize that setting up a minecraft server is not as easy as hosting a game on steam or any other system. Its a very involved process that will take time and effort on your part. Please do not come here expecting easy answers.
IPs: External, Internal, and you!
For running a simple server at your house, there are two types of IPs you need to worried about: EXTERNAL and INTERNAL/LOCALHOST
EXTERNAL IPs are the IP you want to give to your friends when they are outside of your house trying to connect. This IP can be found at the top of the page at whatsmyip.org. Do NOT put this IP in your server.properties file!
INTERNAL IP/LOCALHOST is the number that you or your friends type in if they are in the same house as you. Or you can type Localhost. This IP is found in different places for macs and PCs.
For Macs: Click on the apple at the top left, click system preferences, and click on network. Your internal IP will be listed next to "IP Adress", or if you're using wireless, it will say "You are connected to blahblahblah network with the IP address 192.168. something something".
For PCs: you will want to go to start, then run, then type in cmd and press enter. In the command window, type "ipconfig" and press enter. After it spits out a bunch of numbers, look for the one thats next to "IPv4 Address......", it should start with 192.168, but Ive also seen 10.XX.XX.XXX. That number is your internal IP address.
Portforwarding: Meet the headache
Portforwarding is a pain in the butt because there IS no single guide to port forward on any router. If you know your router model and type go to Portforward.com and find your router and follow the instructions. The router model is found somewhere on the physical router.
Some TIPS:
Once you are in the router, BE CAREFUL! You could mistakenly edit something you didnt want to and screw up your settings.
You NEED a static internal IP address in order to do this. This is done differently on Windows and Macs.
For Macs, go to System preferences, then network. Next to "configure IPv4" select "Using DHCP with manual address" and enter in the address that was displayed already.
For windows, click hereNOTE: If you know of a simplier way to do it, PLEASE tell me so I can put it in here.
For macs, theres a great port mapper tool here. Click me. If anyone knows of any PC ones, let me know please.
When you found where to port forward, when it asks for an IP address, enter the INTERNAL IP address of the computer hosting the minecraft server. When it asks for "Protocols" select TCP and UDP or "both" if thats an option.
If you want to check if you've port forwarded correctly, go to http://canyouseeme.org/ and check to see if the port is open.
Connection Errors: Know the difference
There are two main types of connection errors.
Connection: timed out and Connection: refused
Connection timed out usually means your ports are not forwarded correctly, or possibly your ISP blocked your ports. Go back to portforwarding. If you are CERTAIN that you ahve portforwarded correctly (you have triple checked you forwarded correctly) then your ISP (Internet Service Provider) is blocking your ports and the only way around that is to call them. Examples of ISPs are Verizon, Comcast, and Integranet.
Connection refused means for some reason the server is not listening for connections. This can be caused from the server simply being off, port number in server properties is incorrect.
FAQ: WIP Last Updated 4/23/2011
Q: Help! It says "Kicking [127.0.0.1]: You Need to log in!"
File > Save As
Browse to where minecraft_sever.jar is.
For the filename, enter minecraft.bat
for the file type, Select All Types.
Click Save.
Then double click Minecraft.bat to run the server with that command.
A2:For Macs: Open up TextEdit, found in Applcations
Open Terminal, found in Applications -> Utilities
Take the folder containing your Minecraft_server.jar and drag and Drop the folder into the Terminal window
Copy the filepath that shows up.
In Text edit type "cd" then paste the filepath into textedit
Then put in java -Xmx1024M -Xms1024M -jar minecraft_server.jar
Now your Textedit file should look something like
cd /users/Your_User_Name/Desktop/Minecraft_server_folder
java -Xmx1024M -Xms1024M -jar minecraft_server.jar
In the Text edit window, Press Shift+command()+T
Now Save the file as BootServer.command on your Desktop
In Terminal, type Chmod +x press space, and drag and drop the BootServer.command into the Terminal window.
Press enter.
Now double click BootServer.command whenever you want to launch your server.
Q: Help! Failed to Bind to port error!
A: First thing, check to make sure that your ip= in your server.properties file is BLANK! I mean it! LEAVE IT BLANK!
Second, make sure there are no other servers running on your computer, best way to make sure of this is to reboot.
Q: Whats online mode and why does it need to be on?
A: Oneline mode is name verification for the minecraft.net server. You want this to be on, otherwise you cant ban anyone has they can come back with a different name. Only time you'd want to turn this off is when minecraft.net goes down and you absolutely have to play on your server.
Q: Im an OP but I cant break any blocks, whats up? 4/23/11
A: An issue that seems to come with 1.5, try moving away from spawn. Also, I heard the single player commands mod can cause issues with this.
This guide is a work in progress. If theres anything you think I should include in the original post, let me know! Also please let me know if you see any errors!
The only thing I'd say to add is that there is the rare chance that your ISP blocks your ports and the only way around that is to call them. So if they tried forwarding their router, turning off/forwarding through their firewall, turning off antivirus, and that all.. it may not be their fault. Last resort would be check with their ISP since it can be tricky.
Other than that, another useful post. I do feel it could be a little more tldr; friendly, but if someone is after getting a server setup it does work well =)
Rollback Post to RevisionRollBack
$15: 1 GB RAM, Windows 2008, SolusVM with VNC. 14 Months+ Customer. ThrustVPS! I've tried Burst and HazeNET in the past and it was no comparison...
The only thing I'd say to add is that there is the rare chance that your ISP blocks your ports and the only way around that is to call them. So if they tried forwarding their router, turning off/forwarding through their firewall, turning off antivirus, and that all.. it may not be their fault. Last resort would be check with their ISP since it can be tricky.
Other than that, another useful post. I do feel it could be a little more tldr; friendly, but if someone is after getting a server setup it does work well =)
Is the Upload speed meant to be entered in KBPS or MBPS?
EDIT: I don't need the guide or anything, just wondering because it's not specified.. And I'm curious to know how many it says I can host... Though I've had 15 players running on it before.
“Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.” — Albert Einstein
"Never try to teach a pig to sing; it wastes your time and it annoys the pig." — Robert Heinlein
“Two things are infinite: the universe and human stupidity; and I'm not sure about the universe.” — Albert Einstein
"Never try to teach a pig to sing; it wastes your time and it annoys the pig." — Robert Heinlein
Ok quik question it tels me if I have ram issiuse (witch I do) to luanch from java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
no idea what that means or how to go about it please help
Ok quik question it tels me if I have ram issiuse (witch I do) to luanch from java -Xmx1024M -Xms512M -cp Minecraft.jar net.minecraft.LauncherFrame
no idea what that means or how to go about it please help
ok im pc and I made a mistake I looked agian it wants me to luanch from
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
I just copy pasted wrong the first time
and some other random info I got a sever started but it kept saying cant keep up and when it began it said not enough space and when I logged in it was an ifinite blue void. I did the test thing you put up I should be able to host 11 people and I ony want to host me and my brother so thats not a prob
ok im pc and I made a mistake I looked agian it wants me to luanch from
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
I just copy pasted wrong the first time
and some other random info I got a sever started but it kept saying cant keep up and when it began it said not enough space I did the test thing you put up I should be able to host 11 people and I ony want to host me and my brother so thats not a prob
Those [WARNING]: Cant keep up! Is the server overloaded or did the system time change?
Just ignore them.
If it said "NOT ENOUGH RAM" just ignore that too, the default 500 mb should be fine for 2 people.
its not just that when I logg in i just keep falling I know thats normal at first but then it kicks me out for space reson I have 1500 somthing mb or ram what Im really trying to figure out is what it means by luanching from
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
its not just that when I logg in i just keep falling I know thats normal at first but then it kicks me out for space reson I have 1500 somthing mb or ram what Im really trying to figure out is what it means by luanching from
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
If its kicking you, thats probably not a RAM issue but a internet issue. What does it say when it kicks you?
When it kicks me it says somthing like Java connection reset. I started sever agian it doesnt kick me now I just load into a giant space with no blocks somtimes I see a squid or too falling and On the sever screen it spams
[warning] cant keepup did the system time change? or is the server overloaded?
Very nice guide! Very informative and helpful. I'm sure it wil help alot of people having the same issues i had and lessen the threads about how to do this kind of stuff in the forums. Thanks for the help yesterday by the way! I kind of feel bad like im a bit of the reason you made this thread, haha :tongue.gif:
I'm running a server with the whitelist active. Most of my friends can get on, but one of them gets the Connection Timed Out: Connection error when he tries to get on.
I'm assuming the issue is not server side seeing as atleast 5 other people can get on, a few of which are on at this very moment.
I'm new at all of this, what do I need to do or what do I need to instruct my friend to do?
Very nice guide! Very informative and helpful. I'm sure it wil help alot of people having the same issues i had and lessen the threads about how to do this kind of stuff in the forums. Thanks for the help yesterday by the way! I kind of feel bad like im a bit of the reason you made this thread, haha :tongue.gif:
Not you, it was just long over due and anyone could've made it.
Quote from mohnzzz »
Question,
I'm running a server with the whitelist active. Most of my friends can get on, but one of them gets the Connection Timed Out: Connection error when he tries to get on.
I'm assuming the issue is not server side seeing as atleast 5 other people can get on, a few of which are on at this very moment.
I'm new at all of this, what do I need to do or what do I need to instruct my friend to do?
Might be a stupid question, but is he putting the port after the ip address? I.e. 342.24.34.67:25565
If you networking gurus find any errors, please let me know :smile.gif:
First off, before continuing, find out if you can even host a server. Go here and enter in your computer specs. http://www.canihostaminecraftserver.com/
If you are unable to host, please reconsider hosting. Unless you are only planning on hosting for you, and a friend or two, your server will probably lag intensely.
Disclaimer: you must realize that setting up a minecraft server is not as easy as hosting a game on steam or any other system. Its a very involved process that will take time and effort on your part. Please do not come here expecting easy answers.
IPs: External, Internal, and you!
For running a simple server at your house, there are two types of IPs you need to worried about: EXTERNAL and INTERNAL/LOCALHOST
EXTERNAL IPs are the IP you want to give to your friends when they are outside of your house trying to connect. This IP can be found at the top of the page at whatsmyip.org. Do NOT put this IP in your server.properties file!
INTERNAL IP/LOCALHOST is the number that you or your friends type in if they are in the same house as you. Or you can type Localhost. This IP is found in different places for macs and PCs.
For Macs: Click on the apple at the top left, click system preferences, and click on network. Your internal IP will be listed next to "IP Adress", or if you're using wireless, it will say "You are connected to blahblahblah network with the IP address 192.168. something something".
For PCs: you will want to go to start, then run, then type in cmd and press enter. In the command window, type "ipconfig" and press enter. After it spits out a bunch of numbers, look for the one thats next to "IPv4 Address......", it should start with 192.168, but Ive also seen 10.XX.XX.XXX. That number is your internal IP address.
Portforwarding: Meet the headache
Portforwarding is a pain in the butt because there IS no single guide to port forward on any router. If you know your router model and type go to Portforward.com and find your router and follow the instructions. The router model is found somewhere on the physical router.
Some TIPS:
Once you are in the router, BE CAREFUL! You could mistakenly edit something you didnt want to and screw up your settings.
You NEED a static internal IP address in order to do this. This is done differently on Windows and Macs.
For Macs, go to System preferences, then network. Next to "configure IPv4" select "Using DHCP with manual address" and enter in the address that was displayed already.
For windows, click here NOTE: If you know of a simplier way to do it, PLEASE tell me so I can put it in here.
For macs, theres a great port mapper tool here. Click me. If anyone knows of any PC ones, let me know please.
When you found where to port forward, when it asks for an IP address, enter the INTERNAL IP address of the computer hosting the minecraft server. When it asks for "Protocols" select TCP and UDP or "both" if thats an option.
If you want to check if you've port forwarded correctly, go to http://canyouseeme.org/ and check to see if the port is open.
Connection Errors: Know the difference
There are two main types of connection errors.
Connection: timed out and Connection: refused
Connection timed out usually means your ports are not forwarded correctly, or possibly your ISP blocked your ports. Go back to portforwarding. If you are CERTAIN that you ahve portforwarded correctly (you have triple checked you forwarded correctly) then your ISP (Internet Service Provider) is blocking your ports and the only way around that is to call them. Examples of ISPs are Verizon, Comcast, and Integranet.
Connection refused means for some reason the server is not listening for connections. This can be caused from the server simply being off, port number in server properties is incorrect.
FAQ: WIP Last Updated 4/23/2011
Q: Help! It says "Kicking [127.0.0.1]: You Need to log in!"
A: You are probably trying to run a creative server. Get the Minecraft beta server software from here. http://www.minecraft.net/download.jsp
Q: Why does it keep saying "[WARNING]: Cant keep up! Did the System Time change or is the server overloaded?"
A: Memory leaks, these can be ignored
Q: How can I add more RAM to my server?
A: For PCs: Open notepad
Put in the text:
File > Save As
Browse to where minecraft_sever.jar is.
For the filename, enter minecraft.bat
for the file type, Select All Types.
Click Save.
Then double click Minecraft.bat to run the server with that command.
A2:For Macs: Open up TextEdit, found in Applcations
Open Terminal, found in Applications -> Utilities
Take the folder containing your Minecraft_server.jar and drag and Drop the folder into the Terminal window
Copy the filepath that shows up.
In Text edit type "cd" then paste the filepath into textedit
Then put in java -Xmx1024M -Xms1024M -jar minecraft_server.jar
Now your Textedit file should look something like
In the Text edit window, Press Shift+command()+T
Now Save the file as BootServer.command on your Desktop
In Terminal, type Chmod +x press space, and drag and drop the BootServer.command into the Terminal window.
Press enter.
Now double click BootServer.command whenever you want to launch your server.
Q: Help! Failed to Bind to port error!
A: First thing, check to make sure that your ip= in your server.properties file is BLANK! I mean it! LEAVE IT BLANK!
Second, make sure there are no other servers running on your computer, best way to make sure of this is to reboot.
Q: Whats online mode and why does it need to be on?
A: Oneline mode is name verification for the minecraft.net server. You want this to be on, otherwise you cant ban anyone has they can come back with a different name. Only time you'd want to turn this off is when minecraft.net goes down and you absolutely have to play on your server.
Q: Im an OP but I cant break any blocks, whats up? 4/23/11
A: An issue that seems to come with 1.5, try moving away from spawn. Also, I heard the single player commands mod can cause issues with this.
This guide is a work in progress. If theres anything you think I should include in the original post, let me know! Also please let me know if you see any errors!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Other than that, another useful post. I do feel it could be a little more tldr; friendly, but if someone is after getting a server setup it does work well =)
ThrustVPS! I've tried Burst and HazeNET in the past and it was no comparison...
Thanks! Ill add that!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
Is the Upload speed meant to be entered in KBPS or MBPS?
EDIT: I don't need the guide or anything, just wondering because it's not specified.. And I'm curious to know how many it says I can host... Though I've had 15 players running on it before.
"Never try to teach a pig to sing; it wastes your time and it annoys the pig." — Robert Heinlein
Did you read the page? Did you visit the page? Are you sure you're ready to run a server?
I run a server! I was just wondering, because the Upload speed Units are NOT labeled!
"Never try to teach a pig to sing; it wastes your time and it annoys the pig." — Robert Heinlein
*Jaw drop* wow, I didn't know this existed! Sweet!
Totally New at running servers? Click me!
I wonder if sansavarous is online...
no idea what that means or how to go about it please help
What OS are you using? Mac or PC?
Totally New at running servers? Click me!
I wonder if sansavarous is online...
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
I just copy pasted wrong the first time
and some other random info I got a sever started but it kept saying cant keep up and when it began it said not enough space and when I logged in it was an ifinite blue void. I did the test thing you put up I should be able to host 11 people and I ony want to host me and my brother so thats not a prob
Those [WARNING]: Cant keep up! Is the server overloaded or did the system time change?
Just ignore them.
If it said "NOT ENOUGH RAM" just ignore that too, the default 500 mb should be fine for 2 people.
Totally New at running servers? Click me!
I wonder if sansavarous is online...
java -Xmx1024M -Xms1024M -jar minecraft_server.jar nogui
If its kicking you, thats probably not a RAM issue but a internet issue. What does it say when it kicks you?
Totally New at running servers? Click me!
I wonder if sansavarous is online...
[warning] cant keepup did the system time change? or is the server overloaded?
I'm running a server with the whitelist active. Most of my friends can get on, but one of them gets the Connection Timed Out: Connection error when he tries to get on.
I'm assuming the issue is not server side seeing as atleast 5 other people can get on, a few of which are on at this very moment.
I'm new at all of this, what do I need to do or what do I need to instruct my friend to do?
Not you, it was just long over due and anyone could've made it.
Might be a stupid question, but is he putting the port after the ip address? I.e. 342.24.34.67:25565
Totally New at running servers? Click me!
I wonder if sansavarous is online...