Difference between revisions of "Setting up a server/fr"
Farfadet46 (talk | contribs) (Created page with "Créer un serveur Jump to: navigation, search Contenu 1 Créer un Serveur 2 Exécuter le Serveur 2.1 Linux 2.2 Windows 3 Autre liens Créer un se...") |
Farfadet46 (talk | contribs) |
||
Line 1: | Line 1: | ||
+ | == Setting up a Server == | ||
+ | |||
+ | #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 <code>ifconfig</code> and hit enter | ||
+ | #*'''Windows''': Start → Run … → <code>cmd.exe</code> → <code>ipconfig</code> | ||
+ | #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 | ||
+ | #Add <code>server_announce = 1</code> to your minetest.config to announce it to a public server list. | ||
+ | |||
+ | == Running a Server == | ||
+ | |||
+ | === Linux === | ||
+ | |||
+ | #Open a terminal. | ||
+ | #Type in <code>YOUR/MINETEST/DIRECTORY/bin/minetestserver</code> or just drop the minetestserver executable (located in <code>/Minetest/bin/</code>) into the terminal '''(PLEASE READ THE NOTES BELOW!)''' | ||
+ | #*If you want to specify a specific game ID, the game ID choices are located in <code>/Minetest/games/</code>. Add in <code>--gameid '''thegameid'''</code> to the end of the command. | ||
+ | #*If you get the error “Multiple worlds are available.”, the world choices are located in <code>/Minetest/worlds/</code>. Add in <code>--worldname '''theWorld'''</code> to the end of the command. | ||
+ | #If your server crashes, then look at the <code>debug.txt</code> in <code>/Minetest/bin/</code> | ||
+ | #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: <code>minetest.exe --server</code>. | ||
+ | #*If you get the error “Multiple worlds are available.”, use <code>minetest.exe --server --worldname '''world_name'''</code> instead, where <code>'''world_name'''</code> is the name of the world. | ||
+ | #If your server crashes, then look at the <code>debug.txt</code> in <code>/Minetest/bin/</code> | ||
+ | #Enjoy running a Minetest server! | ||
+ | |||
+ | Si vous voulez automatiser le redémarrage de votre serveur après un crash, vous pouvez lancer ce fichier batch: | ||
+ | (If you don't like to start the crashed server, simply start the server out of a batch file which contains the following code:) | ||
+ | |||
+ | @echo off | ||
+ | :crash | ||
+ | minetest.exe --server --worldname ''world_name'' | ||
+ | goto crash | ||
+ | |||
+ | |||
+ | == See also == | ||
+ | * For more possible commands study the [[Command line]] page. | ||
+ | * See the [[Setting up a server/Debian]] page for more Debian related informatian. | ||
+ | * This forum thread "[https://forum.minetest.net/viewtopic.php?f=10&t=2870 Illustrated Server Creation Guide]" may be of general interest. | ||
+ | * See this forum thread for more information about "[https://forum.minetest.net/viewtopic.php?f=10&t=8924 How to create and maintain a server - Windows]" | ||
+ | |||
+ | [[Category:Tutorials]] | ||
+ | [[Category:Server]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
Créer un serveur | Créer un serveur | ||
Jump to: navigation, search | Jump to: navigation, search | ||
Line 46: | Line 105: | ||
Si votre serveur crashes, Vous pouvez trouver le fichier de debug (debug.txt) dans /Minetest/bin/ | Si votre serveur crashes, Vous pouvez trouver le fichier de debug (debug.txt) dans /Minetest/bin/ | ||
Appréciez votre serveur MINETEST ! | Appréciez votre serveur MINETEST ! | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 11:47, 10 March 2015
Setting up a Server
- 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.exe
→ipconfig
- Linux: open a terminal and type
- 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
- Add
server_announce = 1
to your minetest.config to announce it to a public server list.
Running a Server
Linux
- Open a terminal.
- Type in
YOUR/MINETEST/DIRECTORY/bin/minetestserver
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 you want to specify a specific game ID, the game ID choices are located in
- 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:
minetest.exe --server
.- If you get the error “Multiple worlds are available.”, use
minetest.exe --server --worldname world_name
instead, whereworld_name
is the name of the world.
- If you get the error “Multiple worlds are available.”, use
- If your server crashes, then look at the
debug.txt
in/Minetest/bin/
- Enjoy running a Minetest server!
Si vous voulez automatiser le redémarrage de votre serveur après un crash, vous pouvez lancer ce fichier batch: (If you don't like to start the crashed server, simply start the server out of a batch file which contains the following code:)
@echo off :crash minetest.exe --server --worldname world_name goto crash
See also
- For more possible commands study the Command line page.
- See the Setting up a server/Debian page for more Debian related informatian.
- This forum thread "Illustrated Server Creation Guide" may be of general interest.
- See this forum thread for more information about "How to create and maintain a server - Windows"
Créer un serveur
Jump to: navigation, search
Contenu
1 Créer un Serveur 2 Exécuter le Serveur 2.1 Linux 2.2 Windows 3 Autre liens
Créer un serveur
Démarrer votre serveur sur un port choisi Note: Il est recommandé d'utiliser le port par défaut (30000) Trouver l'IP interne de l'ordinateur sur lequel vous allez lancer le serveur Linux: Ouvrez le terminal afin de saisir la commande ifconfig et pressez Entrer Windows: Demarrer → Executer… → cmd.exe → ipconfig Vérifiez les réglages de d'ouverture de port dans votre routeur (généralement votre Box) ouvrez le port que vous avez choisi pour le TCP et le UDP (30000 si vous laissez le port par défaut) vers l'adresse IP interne de l'ordinateur exécutant le serveur N'oubliez pas de modifier les paramètres du pare feux afin de laisser passer le trafic sur ce port. Pour voir comment lancer un serveur, veuillez lire ci-dessous Donnez votre adresse IP externe (de votre BOX) a vos amis Ajouter le paramètre server_announce = 1 dans votre fichier minetest.config pour que votre serveur soit visible dans la liste des serveurs publics.
Executer un serveur Linux
Ouvrez le terminal. Ecrivez YOUR/MINETEST/DIRECTORY/bin/minetestserver ou simplement glissez-déposez l'executable minetestserver (situé dans /Minetest/bin/) dans le terminal (VEUILLEZ LIRE LES NOTES CI-DESSOUS!) Si vous voulez spécifier un ID de jeu spécifique, Le choix de l'ID de jeu se situe dans /Minetest/games/. Ajoutez simplement --gameid thegameid à la fin de la commande. Si vous avez l'erreur “Multiple worlds are available.”, Le choix de la map est situé dans /Minetest/worlds/. Ajoutez simplement --worldname theWorld à la fin de la commande. Si votre serveur crashe, vous trouverez un fichier de débug (debug.txt) dans/Minetest/bin/ Appréciez votre serveur MINETEST !
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
Ouvrez une console en cliquant droit sur un fichier quelconque (pas minetest.exe) tout en maintenant SHIFT appuyé afin d'afficher l'option ouvrir une fenêtre de commande a cet endroit (à vérifier la présence sous WIN8) Ecrivez ceci : minetest.exe --server Si vous avez l'erreur “Multiple worlds are available.”, Utilisez la commande minetest.exe --server --worldname world_name où world_name est le nom du dossier de la map (liste des Monde visible dans le dossier (/Minetest/worlds/). Si votre serveur crashes, Vous pouvez trouver le fichier de debug (debug.txt) dans /Minetest/bin/ Appréciez votre serveur MINETEST !