Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

How to: Minecraft LAN


  • Please log in to reply
16 replies to this topic

#1

TableCraft

Posted 09 January 2011 - 04:11 PM

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. :D
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.

Register or log in to remove.

#2

TableCraft

Posted 09 January 2011 - 04:12 PM

if this could get stickied it would be nice :)
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.

#3

TableCraft

Posted 09 January 2011 - 04:42 PM

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.
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.

#4

chernobyl360

Posted 14 January 2011 - 11:22 PM

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....

#5

ryjarvis
    ryjarvis

    Tree Puncher

  • Members
  • 10 posts
  • Location: Hamilton, Ontario

Posted 23 January 2011 - 08:58 PM

chernobyl360 said:

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.

#6

samus7694

Posted 21 February 2011 - 01:02 PM

fucking bookmarked
Posted Image
Posted Image

#7

kenshin18gr

Posted 05 March 2011 - 09:31 PM

Is there a way to save the game in lan when you have the host(server) or you must keep the computer online 24/7??
answer me plz
:P)

#8

unhdude
    unhdude

    Newly Spawned

  • Members
  • 1 posts

Posted 06 March 2011 - 12:33 AM

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.

#9

Trainzack

Posted 06 March 2011 - 06:43 AM

chernobyl360 said:

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.
Posted Image
I used to be a like you, but then I accidentally my knee.

#10

chineseducks

Posted 07 March 2011 - 02:29 PM

http://trodde.com/ar...raftserver.html

#11

xgkkp
    xgkkp

    Coal Miner

  • Members
  • 148 posts

Posted 07 March 2011 - 02:49 PM

TableCraft said:

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.

On my network, at least, you can type the computers hostname into minecraft directly and it resolves the address automatically. This is contingent on knowing your computers hostnames, of course (I believe you can just run "hostname" on windows at the same place you type "ifconfig", but don't quote me on that always working perfectly - I only have XP to test and don't use it that often).

#12

ObiWanobi

Posted 24 March 2011 - 03:29 AM

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 :/

#13

rch
    rch

    Minecraft.cm

  • Members
  • 4104 posts
  • Location: Florida
  • Minecraft: rch

Posted 24 March 2011 - 03:37 AM

No, you do not have to port forward for a lan connection, just have your mates connect to your internal IP.

#14

minepro97
  • Location: Australia
  • Minecraft: minepro97

Posted 20 April 2011 - 07:33 AM

If anyone has any problems check out my thread on how it is done. Feedback and additional information is graetly appriciated =D.

How to set up your own Local Area Network (LAN) server.
http://www.minecraft...p?f=10&t=283988


View PostAtomicStryker, on 27 February 2011 - 03:14 PM, said:

I recommend using Optifine for replacing Notch's funky render code with slightly less funky rendering code.

#15

Viktn0r
    Viktn0r

    Carpenter

  • Members
  • 44 posts
  • Location: Norway :)
  • Minecraft: Viktn0r

Posted 10 November 2011 - 08:25 PM

Awesome :D
Posted Image

#16

trickyspark

Posted 09 March 2012 - 02:01 PM

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.

Posted Image


#17

InThayne
    InThayne

    Redstone Miner

  • Members
  • 524 posts

Posted 09 March 2012 - 02:31 PM

Try making a .bat to open minecraft with-

@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.