Development Servers Overview
During this guide, we will set up a dedicated server and place the server build of our project on the dedicated server.
IMPORTANT: Before we begin, there are some potential problems you may face, as no server is truly 'free':
- Service providers are NOT free.
- Most of the time you can start with free trials for a limited time, after x amount of time or x amount of used resources the trial will end and you might incur a payment.
- Always read the provider's free trial limitations.
- Some providers require a payment method for using a Windows instance, however as long as you do not go over the limitations the provider should not bill you.
Mirage is not affiliated and can not be held responsible for any charges or fees associated with service providers like AWS, Microsoft Azure, Google Compute Engine, and others...
Introduction
During your development with Mirage, you will need to test your project as a client and as a server. There are a few possible ways to test your project:
- Default build: Host/client as one and connect with another build/editor to the host locally on 1 computer.
- Server build: Server is a separate executable. You can place it on your computer run it and connect to it as a client.
- Dedicated Server: Same as the server build but placed on an external machine, you connect to it with the server's external IP.
This guide will focus on the "Dedicated Server" option. There are multiple providers and even self-hosted dedicated machines. All possibilities still go through the same process to ensure connectivity to clients. A few requirements for a dedicated server:
- Port forwarding (Not strictly necessary but makes everything a lot easier without needing NAT punch-through)
- Firewall exceptions
- Computer/machine that stays online and accessible whenever you need it.
In the upcoming sections, we will go through setting up a provider with the free tier.
Always double-check that you do not select a paid feature as this is purely meant as a short-term period to test out basic functionality during the development of your project.
Amazon Web Services (AWS)
See this guide: AWS setup
Google Compute Engine
See this guide: Google cloud setup
Microsoft Azure
Microsoft Azure (as of the time of writing) allows setting up a windows instance during the free trial without an active payment method.
To be added
Self-Hosted Dedicated Server
A self-hosted dedicated server is the same as the other providers but you provide the hardware, internet connection, and costs for running the computer. Most of the time this is the cheapest option during development if you already have an extra machine. Preferably you would put the machine on a different network (to simulate the conditions as the other providers). This would mean you could connect to the machine and put your server build on whenever you need and have access to the router and security settings of the machine for port forwarding and firewall exceptions.
In essence, this is the simplest setup but does require extra hardware.