Difference between revisions of "Setting up a server"

From Luanti Wiki
Jump to navigation Jump to search
(copy from http://wiki.minetest.com/wiki/Setting_up_a_server with some changes)
 
(Page is moving!)
Tag: Replaced
 
(64 intermediate revisions by 18 users not shown)
Line 1: Line 1:
== Setting up a Server ==
+
[https://dev.luanti.org/Setting_up_a_server/ This page has been moved to the new Luanti Developer Wiki!]
 
 
#Start your server on your desired port
 
#*'''Note''': It is recommended to leave the port at the default (30000)
 
#Find out your internal IP of the computer you are running the server on
 
#*'''Linux''': open a terminal and type '''ifconfig''' and hit enter
 
#*'''Windows''': Start>run>cmd>ipconfig
 
#Check the port forwarding settings on your router
 
#*forward your chosen port for both TCP and UDP (30000 if you left it default) to the internal IP
 
#*In addition, alter any firewalls you may have to pass the traffic at that port
 
#To see how to '''run''' a server, please read the section below
 
#Let your friends know your external IP
 
 
 
== Running a Server ==
 
 
 
=== Linux ===
 
 
 
#Open a terminal.
 
#Type in "YOUR/MINETEST/DIRECTORY/bin/minetestserver" without quotes or just drop the minetestserver executable (located in /Minetest/bin/) into the terminal '''(PLEASE READ THE NOTES BELOW!)'''
 
#*If you want to specify a specific game ID, the game ID choices are located in /Minetest/games/. Add in ''--gameid '''thegameid''' '' to the end of the command.
 
#*If you get the error "Multiple worlds are available.", the world choices are located in /Minetest/worlds/. Add in ''--worldname '''theWorld''' '' to the end of the command.
 
#If your server crashes, then look at the debug.txt in /Minetest/bin/
 
#Enjoy running a Minetest server!
 
 
 
For easy use you can create an file named minetestserver.sh, add the lines below and put it in your /Minetest/bin/ folder. To run the server, just run the file in a terminal.
 
#!/bin/bash -x
 
 
./minetestserver --gameid minetest --worldname world
 
 
 
=== Windows ===
 
 
 
#Open command prompt by going in the Minetest installation folder, then in the "bin" folder, hold Shift, do a right click on a empty file (not on minetest.exe), click "Open command window here".
 
#Type this, without quotes: "minetest.exe --server".
 
#*If you get the error "Multiple worlds are available.", use "minetest.exe --server --worldname '''world_name'''" instead, where world_name is the name of the world.
 
#If your server crashes, then look at the debug.txt in /Minetest/bin/
 
#Enjoy running a Minetest server!
 
 
 
[[Category:Tutorials]]
 
[[Category:Server]]
 

Latest revision as of 22:44, 14 December 2024