Hosting a Server on Your Computer
If you want to play with your friends and do not have a dedicated server, follow these instructions to set one up on your computer.
Playing over LAN
Note: This will only work when everyone is connected to the same Local Area Network (generally that means the same WiFi network or router).
- Start the server
- Find your local IP address and share it with your friends. They will need to enter it in-game to join the server.
- Have fun!
Playing over the internet
Note: You will need access to your router and knowledge about port forwarding.
Tip: If you are unable to set up port forwarding, there exist programs such as ZeroTier, Netbird or Hamachi, which allow a limited amount of users to connect to a local server through the internet.
- Forward port
14004
TCP and UDP on your router. - Start the server
- Find your public IP address and share it with your friends. They will need to enter it in-game to join the server.
- Have fun! :)
Note: If you need your computer's local IP address for port forwarding, refer to the Finding your local IP address section below.
Starting the server
Using the server provided by Airshipper
This is a good option if everyone playing uses Airshipper.
- Find your game installation folder.
- Go into
profiles/default
. - Launch
veloren-server-cli[.exe]
.
Using a custom server executable
This is a good option if you want to play an older release or a custom version.
- Open the folder with extracted game files.
- Make sure you have the
assets
folder in the same place as the server executable. - Launch
veloren-server-cli[.exe]
.
Finding your local IP address
Tip: Generally local IPv4 addresses have the form of
192.168.xxx.xxx
or, more rarely,10.xxx.xxx.xxx
. For IPv6 addresses, local ones generally start withfe80:
On Linux and macOS
- Open the Terminal.
- Type
ip addr || ifconfig
and press enter. - You will see all of your computer's IP addresses, grouped by network card/interface.
Interface names starting withe
are generally ethernet while ones starting withw
are generally wireless. Lines starting withinet
andinet6
show IPv4 and IPv6 addresses respectively. If there are multiple addresses in one line, only the first is important.
For example,lo
is the loopback interface with a127.0.0.1
IPv4 address and a::1
IPv6 address.
Likely, the first address which doesn't belong to the loopback interface is what you are looking for.
On Windows
- Open CMD (type
cmd.exe
into the start menu and press enter). - Type
ipconfig
and press enter. - You will see all of your computer's IP addresses, grouped by network card/interface.
Lines starting withIPv4 address
orIPv6 address
show the respective address types. Likely, the first address which isn't127.0.0.1
or::1
will be what you are looking for.
Windows Firewall (Optional)
If you use windows firewall, open cmd as admin and write those commands, and press enter. It will automatically add rules to the windows firewall. Remember to configure your router firewall accordingly too.
netsh advfirewall firewall add rule name="Veloren 14004" dir=in action=allow protocol=TCP localport=14004
netsh advfirewall firewall add rule name="Veloren Metrics" dir=in action=allow protocol=TCP localport=14005