[Guide] Create and maintain a server on Windows

User avatar
bosapara
Member
Posts: 637
Joined: Fri Apr 07, 2017 08:49

Re: [Guide] Create and maintain a server on Windows

by bosapara » Post

Enrikoo wrote:
bosapara wrote:
Enrikoo wrote:I think I have a problem on announcing my server on the serverlist, i set
Check your firewall, i had a similar problem.
Shall I turn firewall off for server?
Tell me what you did so I can do this too.

Firstly add port which you use and server (minetest.exe) to white list in 'brandmauer'.

If you use firewall or antivirus, do the same. Here you can find pics with explaining

PS Don't turn off your firewall, It is not safe

Enrikoo
Member
Posts: 452
Joined: Thu Nov 16, 2017 18:18
GitHub: Enrikoo
IRC: Enrico - Enricoo - Enrlco
In-game: Enrico - Enriko
Location: Germany
Contact:

Re: [Guide] Create and maintain a server on Windows

by Enrikoo » Post

How do I whitelist my game so that I can announce my server?

But where to add port?

How can I find my own port?

User avatar
Visitor247
Member
Posts: 21
Joined: Tue Dec 03, 2019 11:09

Re: [Guide] Create and maintain a server on Windows

by Visitor247 » Post

Hi,
I have to find out why nobody can connect to the minetest server from outside.
I guess the problem is on the main server, but I try to eliminate errors. So…

– Minetest is running on a PC in my school. I started it via CMD on a Windows 10 PC. Users from the local network can connect and play without problems, by inserting the IP of the PC in the server field.
– I ordered the company running the main server to create a subdomain and point it to the IP the minetest server is running on. Also port 30000 should be opened.

Am I correct in assuming that I don't need to add any server related lines to the minetest.conf if the server should not be announced?
That would mean, if somebody knows the subdomain they should be able to connect to the minetest server from a client outside the domain by typing in the subdomain, right?

If this is correct, is there anything important about minetest, other than opening port 30000, I could tell the server company to get the forwarding working?

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: [Guide] Create and maintain a server on Windows

by Miniontoby » Post

Did you done this
CraigyDavi wrote: Firstly, You need to find out your default gateway and access your router settings.
  • Open up command prompt and type ipconfig /all
  • Find where it says Default Gateway
    Image
  • Open up your browser and go to http://yourdefaultgateway (obviously replace mydefaultgateway with your actual default gatway).
  • You will now be at your router settings. This is what mine looks like:
    Image
    Now you need to do the port forwarding.
  • Get to the settings. The port forwarding settings may be in the advanced settings.
  • If you are prompted for passwords try using “admin” or “password”. My password was on the back of the router.
    Image
  • You need to get to the port forwarding settings. They may be under the firewall settings. It may also be called “Forward a new game/application.
  • Make sure you use UDP and port 30000 (thirty thousand) The port used in the port range should translate to the same ports. Click apply.
    Image
  • You also need to make sure that you assign the port range to point to the right device (your computer hosting the server). This may be on a different settings page or it may be on the same settings page.
    Image
The port forwarding is done. Make sure all the settings have been set. It may take a few minutes for the ports to be forwarded and it may require a restart of the computer.
And no firewall that blocks it??
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

simondanerd
New member
Posts: 1
Joined: Sat Mar 14, 2020 12:47
GitHub: lucasburlingham
IRC: simondanerd
In-game: simondanerd
Location: Indiana

Re: [Guide] Create and maintain a server on Windows

by simondanerd » Post

I would like to add that running a MT server in the background as a service is also a good idea if you are forgetful. I have been using this setup for a while with the Jovark Realms server, and also the newer The Creative Mineclone Server. I often restart because I don't use a dedicated server (i also don't have a lot of traffic) but rather use my Dell OptiPlex 7010 (Intel Quad Core i5 3470 @ 3.2+ GHz, 32 GB RAM, 240 GB SSD, Win10 Pro) for all my tasks. Setting this up is rather easy - even as a 15 year old it was pretty easy thing to accomplish.
  1. First, login to an administrator's account (it will make this entire process easier).
  2. Open Task Scheduler and click 'Create Task'. Name your task something relevant (like [Server name] MT SERVER, and add a description if wanted (recommended, add the date you started this process).
  3. Click the 'Triggers' tab at the top of the window, and click 'New'. In the drop down menu titled 'Begin the task' and select 'At Startup', then click 'OK'.
  4. Go to the 'Actions' tab and click 'New'. You want to start a program so leave the default drop down value.
  5. Use the 'Browse' and find the minetest.exe file on your computer. You want to start a server, so in the 'Add Arguments (optional):' box, enter

    Code: Select all

    --server --worldname [worldname] 
    (The --worldname part is optional if you only have one server running per instance of the --minetest.exe file.)
  6. Click 'OK' twice to exit the pop-out window.
  7. Restart your computer, and your MT server will be running in the background.
All information came from my brain and this helpful article on even more helpful Superuser.com: https://superuser.com/questions/929225/. Please be aware that the duplicate is better for beginners, the other article does not go into enough detail to count as 'beginner' friendly, and does not use the Task Scheduler approach.
Lucas Burlingham
Jovark Realms Server Owner and Admin

Code: Select all

(jovarkrealm.ddns.net:30000)
The Creative Mineclone Server (Server Owner)

Code: Select all

mystical.ddns.net:30001

Are6
New member
Posts: 6
Joined: Wed Dec 25, 2019 14:47
In-game: Are6 Airo6 aidan5433

Re:

by Are6 » Post

PilzAdam wrote:.eltit eht ot ']swodniW[' dda dluohs uoY
Didn't he?
Are6

Are6
New member
Posts: 6
Joined: Wed Dec 25, 2019 14:47
In-game: Are6 Airo6 aidan5433

Re: [Guide] Create and maintain a server on Windows

by Are6 » Post

Hey, so how do I give someone admin privs on my own server? Why does it keep saying "You don't have enough rights to do so"? Is it because of the "Interact, shout" stuff? What else do I have to add?
Are6

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: [Guide] Create and maintain a server on Windows

by Miniontoby » Post

if you join as the setted name in the minetest.conf ("name = <name>" setting) then type in chat "/grantme all" and then you have all privs and you can grant other people, if you want
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

j45
Member
Posts: 12
Joined: Fri Jul 28, 2017 19:32
GitHub: Minetest-j45
IRC: j1233
In-game: j1233 j45
Location: Cambridge, England, UK
Contact:

Re: [Guide] Create and maintain a server on Windows

by j45 » Post

How do you make it so the whole server backsup automatically and regularly?
Last edited by j45 on Fri Sep 03, 2021 15:54, edited 1 time in total.

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: [Guide] Create and maintain a server on Windows

by Miniontoby » Post

Jan wrote:
Sun Aug 16, 2020 22:48
How do you male it so the whole server backsup automatically regularly?
Hmm for linux its simple bit for windows its a bit difficult. Let me see
  1. create a .bat file
  2. (let me think of a code) (come to my irc at {miniontoby.us5.ircnow.org port: 6697 channel: #miniontoby} to talk and get a code scripted working)
  3. create an other script which will be runned at login and which runs the script at 1 every maybe day
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

Oscar234566
New member
Posts: 3
Joined: Sun Dec 27, 2020 12:53

Re: Guide: How to create and maintain a server - Windows

by Oscar234566 » Post

Krock wrote:
Thu Jun 05, 2014 14:59
Alt. Tester wrote:Do everyone have 192. as there Default Gateway?
But can someone play with me having my default port?
Since I think my Default is 49301 or 53081.
Since really all I like do is play with a Family Member. so should I just use my Gateway and Whatever My Port should be for them join?
192.168.*.* is a common router network address, which is only accessable fromt he people which are in the same network.

If your family member is in the same network, means: using same router, then you only need to use the "Server" tab in the main menu. Start a world and it'll be playable at the given port within your network.
For this case: No portforward needed.
And what do I have to do if they are not in the same network?

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

Re: Guide: How to create and maintain a server - Windows

by Miniontoby » Post

Oscar234566 wrote:
Sun Dec 27, 2020 14:36
Krock wrote:
Thu Jun 05, 2014 14:59
Alt. Tester wrote:Do everyone have 192. as there Default Gateway?
But can someone play with me having my default port?
Since I think my Default is 49301 or 53081.
Since really all I like do is play with a Family Member. so should I just use my Gateway and Whatever My Port should be for them join?
192.168.*.* is a common router network address, which is only accessable fromt he people which are in the same network.

If your family member is in the same network, means: using same router, then you only need to use the "Server" tab in the main menu. Start a world and it'll be playable at the given port within your network.
For this case: No portforward needed.
And what do I have to do if they are not in the same network?
Make it public by getting yourself or an hosted server (i can give you one) or get an vps or let your server go though your home firewall
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
Nininik
Member
Posts: 581
Joined: Thu Apr 06, 2023 01:55
GitHub: nininik0
IRC: nininik
In-game: nininik
Location: CA, Team thunderstrike headquarters
Contact:

HELP!

by Nininik » Post

HELP! MY COMMAND PROMPT OPENS THEN VANISHES!
↯Glory to Team Thunderstrike!↯
↯T.T.S.↯

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: HELP!

by Festus1965 » Post

Nininik wrote:
Tue Jan 16, 2024 00:13
HELP! MY COMMAND PROMPT OPENS THEN VANISHES!
First that is an Windows problem !

The question might be how you open it, and what win version you have, ... but I remember there was an own sign in the main menue ...

but that is still not a problem of minetest.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
Nininik
Member
Posts: 581
Joined: Thu Apr 06, 2023 01:55
GitHub: nininik0
IRC: nininik
In-game: nininik
Location: CA, Team thunderstrike headquarters
Contact:

help

by Nininik » Post

GUYS so ive manges to host it but only i can join on my computer other devices cant.
↯Glory to Team Thunderstrike!↯
↯T.T.S.↯

User avatar
Nininik
Member
Posts: 581
Joined: Thu Apr 06, 2023 01:55
GitHub: nininik0
IRC: nininik
In-game: nininik
Location: CA, Team thunderstrike headquarters
Contact:

s

by Nininik » Post

when attempting to run using windows powershell llike in the wiki,
ends up this: --address <value> Address to connect to. ('' = local game)
--color <value> Coloured logs ('always', 'never' or 'auto'), defaults to 'auto'
--config <value> Load configuration from specified file
--console Starts with the console (Windows only)
--debugger Try to automatically attach a debugger before starting (convenience option)
--gameid <value> Set gameid ("--gameid list" prints available ones)
--go Disable main menu
--help Show allowed options
--info Print more information to console
--logfile <value> Set logfile path ('' = no logging)
--map-dir <value> Same as --world (deprecated)
--migrate <value> Migrate from current map backend to another (Only works when using minetestserver or with --server)
--migrate-auth <value> Migrate from current auth backend to another (Only works when using minetestserver or with --server)
--migrate-mod-storage <value>
Migrate from current mod storage backend to another (Only works when using minetestserver or with --server)
--migrate-players <value> Migrate from current players backend to another (Only works when using minetestserver or with --server)
--name <value> Set player name
--password <value> Set password
--password-file <value> Set password from contents of file
--port <value> Set network port (UDP)
--quiet Print to console errors only
--random-input Enable random user input, for testing
--recompress Recompress the blocks of the given map database.
--run-benchmarks Run the benchmarks and exit
--run-unittests Run the unit tests and exit
--server Run dedicated server
--speedtests Run speed tests
--terminal Feature an interactive terminal (Only works when using minetestserver or with --server)
--test-module <value> Only run the specified test module
--trace Print enormous amounts of information to log and console
--verbose Print even more information to console
--version Show version information
--world <value> Set world path (implies local game if used with option --go)
--worldlist <value> Get list of worlds ('path' lists paths, 'name' lists names, 'both' lists both)
--worldname <value> Set world by name (implies local game if used with option --go)
↯Glory to Team Thunderstrike!↯
↯T.T.S.↯

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: How to create and maintain a server - Windows

by Festus1965 » Post

Nininik wrote:
Tue Jan 16, 2024 00:44
when attempting to run using windows powershell llike in the wiki,
ends up this: --address <value> Address to connect to. ('' = local game)
and what address did you add ? with the parameter to : --address ?.?.?.?

possible is I hope 127.0.0.1 (as always own PC system address), but not for main usage
=> you would be able to start a client on SAME PC and connect to 127.0.0.1

better might be some like you have 192.168.0.1 ??? that would work also inside your network
(check with cmd and ipconfig)
=> with that you can connect from other PC or mobile within your own home network (mean units with 192.168.0.x)

if player from OUTSIDE, mean real internet should be able to join, you need access to the router and let that used --port xxxxx been forwarded to that PCs IP the server runs, even could be also 192.168.0.1 (but that moist is the router), so something 192.168.0.x
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
Nininik
Member
Posts: 581
Joined: Thu Apr 06, 2023 01:55
GitHub: nininik0
IRC: nininik
In-game: nininik
Location: CA, Team thunderstrike headquarters
Contact:

Re: [Guide] Create and maintain a server on Windows

by Nininik » Post

Yes I have the 65.5.93.180 address for server, but I have 192.168 address on router.
↯Glory to Team Thunderstrike!↯
↯T.T.S.↯

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: [Guide] Create and maintain a server on Windows

by Festus1965 » Post

Nininik wrote:
Tue Jan 16, 2024 02:09
Yes I have the 65.5.93.180 address for server, but I have 192.168 address on router.
That sounds maybe logical if you really understood the concept of internet and intranet.

At home your units are ALL needed to have the same IP range as most 192.168.x.x that the router offers the NAT (Intranet) for your home. Otherwise data might not be able to get to the needed home unit that was asking for.

Your router has 2 address : the internal most something like 19.1.68.x.1 as of router settings and the one get from outside during connected to the internet. That one also might change every 24 hours as of local contracts.

So at this point I have no idea where that 65.5.93.180 mean to be at.
But it is USELESS to set this address to the internal server or minetest.conf or --address value.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

User avatar
Walker
Member
Posts: 1835
Joined: Tue Oct 03, 2017 09:22
In-game: Walker
Contact:

Re: [Guide] Create and maintain a server on Windows

by Walker » Post

Guide - Create and maintain a server on Windows:

step 1: install Linux

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests