-
-
Notifications
You must be signed in to change notification settings - Fork 14
User Hosting
This guide will help you set up and host a game using the Multiplayer mod. We'll walk you through each step, so don't worry if you're not tech-savvy!
Note: Dedicated servers are not supported, we hope to add this in the future.
As of release 0.2.0.0 Multiplayer Mod uses Steam's networking API, so port forwarding is not required and the mod should work "out of the box". If you experience issues with high ping you may want to try a direct connection, which will require port forwarding.
- Make sure you have the game installed as well as Unity Mod Manager and Multiplayer Mod version 0.2.0.0 or above.
- If you require port forwarding, see the port forwarding section to set it up.
- Start Derail Valley.
- The player hosting should select a session, or create a new game and press
Host Game. - Enter a name for your server.
- Enter a password (if you want to control who can join).
- Select
Public Gameif you want the game visible to other players. - Enter optional description for your server.
- Choose the maximum number of players (2-10).
- If you require port forwarding, enter the port you are using, otherwise you can leave the port at the default '7777'.
- Press
Startand wait for the game to load.
Details:
- Default port: 7777
- Acceptable port range: 1024 to 49151
- Protocol: UDP (you can also use
Anyif your router supports it) - IP versions: Compatible with both IPv4 and IPv6
To let others connect to your game, you need to set up port forwarding. Here's how:
-
Find your router's address:
- On Windows: Press Win+R, type
cmd, press Enter, then typeipconfigand press Enter. Look for "Default Gateway." - On Mac: Click the Apple menu, go to System Preferences > Network. Select your connection and look for "Router."
- On Windows: Press Win+R, type
-
Enter this address in your web browser.
-
Log in to your router (check for a sticker on your router if you don't know the password).
-
Find "Port Forwarding" or "Virtual Server" in the settings.
-
Create a new rule with these details:
- Protocol: UDP
- External Port: 7777
- Internal Port: 7777
- Internal IP: Your computer's IP address (see "Finding Your IP Address" section)
-
Save your changes.
For visual help, search YouTube for "[Your Router Brand] port forwarding guide".
- Visit whatismyipaddress.com
- Look for the IPv4 address
To check if IPv6 is available and find your IPv6 address:
-
Visit test-ipv6.com to check if IPv6 is available with your ISP.
-
If IPv6 is available, find your IPv6 address:
On Windows:
- Press Win+R, type
cmd, and press Enter to open Command Prompt - Type
ipconfigand press Enter - Look for "IPv6 Address" under your network adapter
- Use the address that doesn't start with "fe80" (that's a link-local address)
On Mac:
- Click the Apple menu and go to System Preferences > Network
- Select your active network connection
- Click "Advanced" and go to the "TCP/IP" tab
- Look for "IPv6 Address" in the list
- Press Win+R, type
Note: Don't use the IPv6 address shown on "what's my IP" websites, as these often display temporary addresses. The address from ipconfig (Windows) or System Preferences (Mac) is the correct one to use for hosting.
If you're stuck, don't hesitate to ask for help in the Multiplayer Mod Discord Channel
Remember, everyone was new to this once, so don't be afraid to ask questions!
Getting Started
Guides
- The Basics
- Packet Naming Conventions
- Defining Packets
- Registering Packet Listeners
- Sending Packets