This test is intended to verify successful connection between separate machines on the same network. Ideally this is completed with a Linux machine as server and any number of Windows machines as clients, but it can be completed with any combination.
- All machines used for this test should be on the same Network.
- Acquire and Compile MultiplayerSample project.
- Server machine has completed its setup.
- All client & server machines have built MultiplayerSample project.
- For Minimum Compiling:
- Server machines should only build
MultiplayerSample.ServerLauncher
. - Client machines should only build
MultiplayerSample.GameLauncher
.
- Server machines should only build
- For Minimum Compiling:
Set Up for the Server Machine:
These steps only need to be done on the 1 machine that will be acting as the server/host for the test.
Linux Setup
- Open a terminal window.
- Enter
sudo ufw allow from any to any port 33450 proto udp
. - Enter
sudo ufw status verbose
. - Check that rule(s) exist for port 33450 with action
ALLOW IN
. - Enter
ifconfig
. - Note the inet ip address found in the first block of information, this address will be used by the clients to connect to the server machine.
Cleaning up after testing
- Open a terminal window.
- Enter
sudo ufw status numbered
. - In the list, note the number for the first entry of your created 33450 rules.
- Enter
sudo ufw delete #
where#
is the number assigned to the rule. - Press
y
to confirm. - Repeat steps 2-5 to remove the second entry (the number for the entry will have updated after deleting the first).
Windows Setup
- Open Windows Defender Firewall.
- Click Advanced Settings.
- Click Inbound Rules.
- Click New Rule.
- Click Port, then Next.
- Click UDP.
- If it’s not already selected, select Specific local ports and enter
33450
, then Next. - Click Allow the connection, then Next.
- Select Network types you’d like to allow connection over then Next.
- Public should not be necessary, but you can leave it as the default.
- Name the rule, then Finish.
- Open a cmd window.
- Enter
ipconfig
. - Note the IPv4 address, this will be used by the clients to connect to the server machine.
Cleaning up after testing
- Open Windows Defender Firewall.
- Click Advanced Settings.
- Click Inbound Rules.
- Find the rule with the name that was given.
- Right-Click the rule and Select Delete.
- Confirm the dialog.
- Number of clients connected.
- Performance on clients (FPS, input response).
- Logs from clients and server after testing.
Workflow | Requests | Things to Watch For |
---|---|---|
Server Client Launches |
|
|
Client Machines Launch & Connect |
|
|