Hello all, i see many people have been asking how to make a LAN or "Local Area Network" server. first let me explain what that is.
a local area network minecraft server allows you to play minecraft with a friend without an online connection, though your friend needs to be with you (in real life). simple as that. Besides if you looked for this guide you must have a small understanding of local area network connections, if not...find a guide for that as well.
Anyway straight to it, i use a LAN server with friends because i dont seem to get lag as much or more often as were just connecting through a router. i couldnt find any guides online so after screwing around i found out how:
Step one: Get all the stuff you need- have the game, the server file, ETC. its self explanatory.
Step two: after you download the server file off minecraft.net , run it as a .exe file to create a server file(which is calle "server.Properties"), for me it goes to the desktop, but i've been told it can come up elsewhere. open it as a .txt and it should look like this:
#Minecraft server properties
#Sun Jan 09 11:00:38 AST 2011
level-name=world
hellworld=false
spawn-monsters=true
online-mode=true
spawn-animals=true
max-players=20
server-ip=
pvp=true
server-port=25565
the file uses True and false as "yes and no". you wont need to bother with server ip and port but you can change whether monsters spawn, animals, and most importantly online mode.
Note: hellworld set to true seems to make everyone spawn in hellworld, which isnt fun when you dont have anything on you.
The most important thing to do here is set online mode to false. and after you done configuring its should look like this:
#Minecraft server properties
#Sun Jan 09 11:00:38 AST 2011
level-name=Tablecraft LAN guide
hellworld=false
spawn-monsters=true
online-mode=false
spawn-animals=true
max-players=20
server-ip=
pvp=false
server-port=25565
i usually set pvp off but thats all preference. after you have that setup you can save and close it. Change the file BACK to a .Properties file so the server reads it. Now make sure you restart your server and "VIOLA!!" your lan server is online.
Step 3- Connecting to your server
Connecting to your own server is simple, its getting your buddies on it that gets difficult.
to get on your own server go to multiplayer (in the game duh!) and type in "Localhost" and you should get in quickly. this is for the person HOSTING the server not everyone. for everyone else, they will need to connect to your ip. who-ever is hosting the server will need to open the start menu and go to Programs-->Accesories-->Command prompt and click it. if it is not there you can run it by clicking RUN and typing "CMD.Exe" and if RUN is not there do a file search for it there should be a file for it somewhere on your computer.
When command prompt opens type in : IPCONFIG
it should generate more text in that text you will find an IPv4 address or IP address, it usually looks like "192.###.#.##" with the number signs as numbers, your friends will need to type this in when their minecraft asks what to connect to. in normal situations they will connect to you normally. when all your friends connect, commence minecrafting.
Enjoy the good times that lie ahead of you.
Extra server notes: the server self saves, which is handy and it saves to a folder called whatever your server name is where your server properties file was, i suggest not fooling with that or you will error whenever you login to your server if you messed it up.
Extra server note#2: the server saves usernames, so if you login as someone else on your computer who was previously logged on you will resume where they left off along with all they were carrying.
Guide brought to you by Tablecraft, minecrafts funnest.
Rollback Post to RevisionRollBack
The sizzle of a creeper is like the click of a claymore in call of duty, when i hear it i know everything i worked for is screwed. the only difference is i stop playing call of duty when im pissed. Minecraft however should be called Minecrack.
if this could get stickied it would be nice :smile.gif:
Rollback Post to RevisionRollBack
The sizzle of a creeper is like the click of a claymore in call of duty, when i hear it i know everything i worked for is screwed. the only difference is i stop playing call of duty when im pissed. Minecraft however should be called Minecrack.
I forgot to add, if there are any questions about the guide or i got something wrong let me know so i can fix it.
Rollback Post to RevisionRollBack
The sizzle of a creeper is like the click of a claymore in call of duty, when i hear it i know everything i worked for is screwed. the only difference is i stop playing call of duty when im pissed. Minecraft however should be called Minecrack.
Yea now that i setup my lan server is there any mods to get unlimited blocks??i miss being able to do the command /give 1 -1. now i only can get 64 at a time....
Yea now that i setup my lan server is there any mods to get unlimited blocks??i miss being able to do the command /give 1 -1. now i only can get 64 at a time....
Not sure, you'll have to search around for that.
I agree, this should be stickied, it's something that can be useful for people just starting.
I'm having issues playing a lan game. I've tried both the .exe and the .jar minecraft server programs. My roomie can connect to the server, but only a couple of chunks will load and he can't really do anything. I added him to the ops list, he can sometimes chop down trees or whatever but only for like a minute then he disconnects. Also, where he sees himself isn't where I see him. I'm guessing there's some sort of disconnect between his local client and the server.
It works fine for me playing on the same computer with the server.
Also, I get the message "To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" when I start up the server, but I'm not actually sure how to start it with more ram. I tried copying that in to cmd.exe but it said it couldn't access minecraft_server.jar.
Yea now that i setup my lan server is there any mods to get unlimited blocks??i miss being able to do the command /give 1 -1. now i only can get 64 at a time....
have you tried something like:
give trainzack 46
were there is no numeral instead of it being -1? this might work.
Do you still need to open port 25565 in order to do this? My uni network will not open ports for running dedicated servers so me and some friends were hoping we could just do a LAN :/
Yes, this worked flawlessly for me!!! I played for hours with my wife in this. I do have one question however. We are on dialup and currently do the following:
plug in one pc
dialup
log into minecraft
disconnect
repeat on the other PC to avoid getting diconnected ("You are already logged in at another location") because the default player name is "Player".
I did try using internet connection sharing on the pc's, but it's behaving kind of wonky (I connect at about 24k max normally when not using ICS).
Is there a way to change the "player" name? I finally just dropped all of my game items, let my wife pick them up, and resigned to dialing up and logging in as just one person with their account name and one as player. This is ok I guess, but i'd like to be able to play without worrying about logging in at all as sometimes I am unable to dialup.
a local area network minecraft server allows you to play minecraft with a friend without an online connection, though your friend needs to be with you (in real life). simple as that. Besides if you looked for this guide you must have a small understanding of local area network connections, if not...find a guide for that as well.
Anyway straight to it, i use a LAN server with friends because i dont seem to get lag as much or more often as were just connecting through a router. i couldnt find any guides online so after screwing around i found out how:
Step one: Get all the stuff you need- have the game, the server file, ETC. its self explanatory.
Step two: after you download the server file off minecraft.net , run it as a .exe file to create a server file(which is calle "server.Properties"), for me it goes to the desktop, but i've been told it can come up elsewhere. open it as a .txt and it should look like this:
#Minecraft server properties
#Sun Jan 09 11:00:38 AST 2011
level-name=world
hellworld=false
spawn-monsters=true
online-mode=true
spawn-animals=true
max-players=20
server-ip=
pvp=true
server-port=25565
the file uses True and false as "yes and no". you wont need to bother with server ip and port but you can change whether monsters spawn, animals, and most importantly online mode.
Note: hellworld set to true seems to make everyone spawn in hellworld, which isnt fun when you dont have anything on you.
The most important thing to do here is set online mode to false. and after you done configuring its should look like this:
#Minecraft server properties
#Sun Jan 09 11:00:38 AST 2011
level-name=Tablecraft LAN guide
hellworld=false
spawn-monsters=true
online-mode=false
spawn-animals=true
max-players=20
server-ip=
pvp=false
server-port=25565
i usually set pvp off but thats all preference. after you have that setup you can save and close it. Change the file BACK to a .Properties file so the server reads it. Now make sure you restart your server and "VIOLA!!" your lan server is online.
Step 3- Connecting to your server
Connecting to your own server is simple, its getting your buddies on it that gets difficult.
to get on your own server go to multiplayer (in the game duh!) and type in "Localhost" and you should get in quickly. this is for the person HOSTING the server not everyone. for everyone else, they will need to connect to your ip. who-ever is hosting the server will need to open the start menu and go to Programs-->Accesories-->Command prompt and click it. if it is not there you can run it by clicking RUN and typing "CMD.Exe" and if RUN is not there do a file search for it there should be a file for it somewhere on your computer.
When command prompt opens type in : IPCONFIG
it should generate more text in that text you will find an IPv4 address or IP address, it usually looks like "192.###.#.##" with the number signs as numbers, your friends will need to type this in when their minecraft asks what to connect to. in normal situations they will connect to you normally. when all your friends connect, commence minecrafting.
Enjoy the good times that lie ahead of you.
Extra server notes: the server self saves, which is handy and it saves to a folder called whatever your server name is where your server properties file was, i suggest not fooling with that or you will error whenever you login to your server if you messed it up.
Extra server note#2: the server saves usernames, so if you login as someone else on your computer who was previously logged on you will resume where they left off along with all they were carrying.
Guide brought to you by Tablecraft, minecrafts funnest.
Not sure, you'll have to search around for that.
I agree, this should be stickied, it's something that can be useful for people just starting.
It works fine for me playing on the same computer with the server.
Also, I get the message "To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar" when I start up the server, but I'm not actually sure how to start it with more ram. I tried copying that in to cmd.exe but it said it couldn't access minecraft_server.jar.
have you tried something like: were there is no numeral instead of it being -1? this might work.
w: minecraft.cm | e: [email protected] | t: @minecraft_cm | reviews
http://www.minecraftforum.net/viewtopic.php?f=10&t=283988
plug in one pc
dialup
log into minecraft
disconnect
repeat on the other PC to avoid getting diconnected ("You are already logged in at another location") because the default player name is "Player".
I did try using internet connection sharing on the pc's, but it's behaving kind of wonky (I connect at about 24k max normally when not using ICS).
Is there a way to change the "player" name? I finally just dropped all of my game items, let my wife pick them up, and resigned to dialing up and logging in as just one person with their account name and one as player. This is ok I guess, but i'd like to be able to play without worrying about logging in at all as sometimes I am unable to dialup.
@SET /P IGN=IGN=
@java -Xms512m -Xmx1024m -cp "%APPDATA%/.minecraft/bin/*" -Djava.library.path="%APPDATA%/.minecraft/bin/natives" net.minecraft.client.Minecraft %IGN%
This will open a cmd window, prompt for a name and then launch the game. This works great for allowing our grandaughter on our server.