Tutorials/Setting Up A LAN World - Minecraft Wiki - Fandom

Contents

  • 1 LAN Games
    • 1.1 Java Edition
      • 1.1.1 Hosting a LAN server
      • 1.1.2 Joining
    • 1.2 Bedrock Edition

LAN Games[]

A local area network (LAN) game is a type of multiplayer game that allows other people in your local network (i.e. just the people connected to your router/switch) to join a Minecraft world. Players over the internet cannot connect unless other workarounds (such as port forwarding or Hamachi) are set up.

Java Edition[]

Hosting a LAN server[]

To open an active single player world to LAN:

  • Open the pause menu
  • Click "Open to LAN"
  • Optionally change the default game mode and/or whether players may use cheats
  • Click "Start LAN World"

It is also possible to start a LAN world by the command line with /publish.

After a world has been opened to LAN, a confirmation message will be sent in the chat, for example: "Local game hosted on port 50000" This port may need to be provided to joining players to help them connect.

On the technical side, a Minecraft client with an opened LAN game sends a UDP multicast to the local address 224.0.2.60:4445 every 1.5 seconds. Other clients then listen for this multicast to show your game in their multiplayer menu.

Joining[]

If joining from the same local network, the game should appear in the multiplayer games list in the Multiplayer menu.

If the game doesn't show in the list, it might still be possible to join. One will need to find the game's port, and the local IP of the computer the host's Minecraft game is running on.

The game's port can be found in the chat message sent in the host world after it was opened to LAN.

The local IP of the host computer can be found in Windows 10 and Windows 11 by opening the command line (press Start, type "cmd" then hit enter), typing the command ipconfig and pressing enter, and finding the IPv4 address.[1] (On macOS, the command is ifconfig,to be typed in the terminal window.) Other operating systems will differ. The local IP should be formatted like 192.168.1.1 or similar, i.e. have '192.168' as the first two sets of numbers. When the local IP and port are found, type them into the "Server Address" field (under either Direct Connect or in the Add Server dialogue), formatted like IP:port (e.g. 192.168.1.1:5000) to join the LAN game.

Note: Using one Minecraft account on two or more computers will not work to join the same world.

Players over the internet can connect to a LAN game if one forwards the game's port on the host's router. If done, people over the internet can connect to your game using your router's IP (which can be found by googling "what is my ip?") in place of your local computer's IP.

Log Me In Hamachi can also be used to play a LAN game over the internet. Hamachi simulates a LAN between people across the internet.

Bedrock Edition[]

On Bedrock Edition, LAN gameplay is on by default. The option to turn it on or off is in the multiplayer section of world settings, you cannot change this while in a world. You can change the number of slots by using /setmaxplayers (a cheat) up to 30. To change the game mode, change it in world settings.

Tutorials
Introductory
  • Menu screen
  • Game terms
Newcomer survival
  • The first day/beginner's guide
  • The second day
  • The third day
  • Hunger management
  • Things not to do
  • Simple tips and tricks
  • Your first ten minutes
Shelters
  • Best biomes for homes
  • Best building materials
  • Building and construction
  • Navigation
  • Shelters
  • Shelter types
General
  • Achievement guide
  • Advancement guide
  • Best enchantments guide
  • Breaking bedrock
  • Combat
  • Complete main adventure
  • Creating a village
  • Downgrading
  • Dual wielding
  • End survival
  • Exploring caverns
  • Gathering resources on peaceful difficulty
  • Getting food quickly
  • Headless pistons
  • Hitboxes
  • Horses
  • Indestructible end crystals
  • Mapping
  • Measuring distance
  • Minecraft in education
  • Mining
    • Diamonds
    • Fossils
    • Ancient Debris
  • Nether hub
  • Nether portals
  • Nether survival
  • Organization
  • Pillar jumping
  • PvP
    • PvP bases
  • Spawn-proofing
  • Summoning jockeys
  • The Void
  • Time-saving tips
  • Thunderstorm survival
  • Units of measure
  • Village mechanics
    • Trading
  • X-ray glitches
Challenges
  • Acquiring a conduit
  • Curing a zombie villager
  • Defeating temples
  • Defeating a village raid
  • Defeating a Nether fortress
  • Defeating a bastion remnant
  • Defeating a monster room
  • Defeating a pillager outpost
  • Defeating a woodland mansion
  • Defeating a monument
  • Defeating an End city
  • Defeating the Ender dragon
  • Defeating the Wither
  • Exploring an ancient city
  • Obtaining every music disc
Non-standardsurvival
  • Adventure survival
  • Half hearted hardcore
  • Hardcore mode
  • Surviving in a single area indefinitely
  • Infinite desert survival
  • Island survival
  • Manhunt
  • Mob switch
  • Nomadic experience
  • Skywars survival
  • Superflat survival
  • Flat survival
  • Ultra hardcore survival
Challenge maps
  • Beating a challenge map
  • Creating a challenge map
Constructions
  • Adding beauty to constructions
  • Airlock
  • Architectural terms
  • Building a cruise ship
  • Building a metropolis
  • Building a rollercoaster
  • Building safe homes
  • Building water features
  • Color palette
  • Creating shapes
  • Defense
  • Desert shelter
  • Elevators
  • Endless circling pool
  • Furniture
  • Glazed terracotta patterns
  • Making nice floors
  • Pixel art
  • Ranches
  • Roof types
    • Curved roofs
    • Roof construction guidelines
    • Roof decorations
  • Secret door
  • Settlement guide
  • Underwater home
  • Walls and buttresses
  • Water gate
  • Water-powered boat transportation
Farming
Blocks and items
  • Amethyst
  • Armor
  • Azalea
  • Bamboo
  • Basalt
  • Bedrock
  • Blaze rod
  • Bone meal
  • Cactus
  • Chorus fruit
  • Clay and mud
  • Cobblestone
  • Cocoa bean
  • Copper
  • Crops (Beetroot, Carrot, Potato, Wheat)
  • Dirt
  • Dragon's breath
  • Dripstone
  • Egg
  • Fern
  • Fish
  • Flower
  • Froglight
  • Glow berries
  • Glow ink sac
  • Glow lichen
  • Goat horn
  • Gold
  • Hanging roots
  • Honey
  • Ice
  • Iron
  • Kelp
  • Lava
  • Meat
  • Moss block
  • Mushroom
  • Music disc
  • Nautilus shell
  • Nether growth
  • Nether vine
  • Nether wart
  • Obsidian
  • Powder snow
  • Pumpkin, Melon
  • Rooted dirt
  • Sculk growths
  • Scute
  • Seagrass
  • Sea pickle
  • Snow
  • Soul soil
  • Sugar cane
  • Sweet berries
  • Tree
  • Trident
  • Vine
  • Villager trading hall
  • Wither rose
  • Wool
  • Duplication
Mobs
  • Mob farming
  • Mob grinding
  • Monster spawner traps
  • Allay
  • Animals
  • Axolotl
  • Blaze
  • Cat
  • Cave spider
  • Creeper
  • Drowned
  • Ender dragon
  • Enderman
  • Frog
  • Goat
  • Guardian
  • Hoglin
  • Iron golem
  • Magma cube
  • Phantom
  • Piglin bartering farm
  • Raid
  • Shulker
  • Slime
  • Squid
  • Turtle
  • Villager
  • Wandering trader
  • Warden
  • Witch
  • Wither
  • Wither skeleton
  • Zombie
  • Zombie villager
  • Zombified piglin
OP farms
  • End of light mob farms
Enchantingand smelting
  • Enchantment mechanics
  • Anvil mechanics
  • Automatic smelting
  • Manual smelting
Blockbreaking
  • Blast chamber
  • Igniting TNT underwater
  • Wither cage
Mechanisms
Basic redstone
  • Automatic respawn anchor recharger
  • Basic logic gates
  • Combination locks
  • Command block
  • Flying machines
  • Hopper
  • Item sorting
  • Item transportation
  • Mechanisms
  • Observer stabilizer
  • Randomizers
  • Redstone music
  • Redstone tips
  • Rube Goldberg machine
  • Shulker box storage
  • Villager trading hall
Detectors
  • Block update detector
  • Comparator update detector
  • Daylight sensor
  • Day night detector
Minecarts
  • Train station
  • Minecarts
    • Storage
    • Storage system
Traps
  • Snow golems
  • TNT cannons
  • Trapdoor uses
  • Trap design
  • Traps
Pistons
  • Piston uses
  • Piston circuits
  • Quasi-connectivity
  • Zero-ticking
  • Instant repeaters
Advancedredstone
  • Advanced redstone circuits
  • Arithmetic logic
  • Calculator
  • Command stats
  • Hourly clock
  • Morse code
  • Printer
  • Redstone computers
  • Redstone telegraph
Servers
  • Playing on servers
  • Multiplayer Survival
  • Spawn jail
  • Griefing prevention
  • Joining a LAN world with alternate accounts
Server setup
  • Setting up a server
  • Server startup script
  • FreeBSD startup script
  • OpenBSD startup script
  • Ubuntu startup script
  • Setting up a Hamachi server
  • Setting up a Minecraft Forge server
  • Setting up a Spigot server
  • Ramdisk enabled server
Technical
  • Improving frame rate
  • Minecraft help FAQ (IRC channel)
  • Update Java
Maps
  • Custom maps
  • Map downloads
  • Command NBT tags
  • Falling blocks
  • Updating old terrain using MCEdit
Resource packs
  • Creating a resource pack
  • Loading a resource pack
  • Sound directory
Data packs
  • Creating a data pack
  • Installing a data pack
  • Custom world generation
CreatingMinecraft media
  • Creating videos
  • Livestreaming
Game installation
  • Installing snapshots
  • Joining and leaving the Bedrock Edition beta program
  • How to get a crash report
  • Installing Forge mods
  • Custom Minecraft directory
  • Playing and saving Minecraft on a thumb drive
  • Playing and saving Minecraft on a thumb drive with the old launcher
  • Recover corrupted saved world data
  • Run Minecraft through Google Drive
  • Save game data to Dropbox (world data only)
  • Saved data Dropbox guide
Outdated
  • Building micro shelters
  • Custom texture packs
  • Door-based iron golem farming
  • Far Lands
  • How to get a crash report
  • Installing mods
  • Man-made lake
  • Managing slimes in superflat mode
  • Minecart booster
  • Potion farming
  • Repeater reboot system
  • Survival with no enabled data packs
  • Update LWJGL
  • Update Minecraft
  • Village chaining
  • Water ladder
  • Water tram
  1. https://www.ionos.com/digitalguide/hosting/technical-matters/finding-your-ip-address/

Tag » What Is Lan In Minecraft