Step-by-Step Guide to Start a Multiplayer Game in Version 0.5.9.4
Notice: Version 0.5.9.4 does not support IPv6 yet.
For a LAN Game (Local Multiplayer)
-
Obtain Your LAN IP Address:
- Press
Win + R
, typecmd
, and press Enter. - In the Command Prompt, type
ipconfig
and press Enter. - Locate the network section that applies to your connection, such as “Ethernet adapter Ethernet” or “Wireless LAN adapter Wi-Fi”, and find the IPv4 Address.
- It should start with
192.168.
- This will be your
LAN_IP
. (e.g.,192.168.2.4
)
- It should start with
- Press
-
Configure the Game:
- Open the
launch.json
file in your game’s root directory. - Set the value of the
ip
key to yourLAN_IP
.- Example:
"ip": "192.168.2.4"
- Example:
- Open the
-
Start the Game:
- Double-click marvel-lcg.exe to launch the game, and leave it running in the background.
- In your browser, go to
http://<LAN_IP>:2345
- Example:
http://192.168.2.4:2345
- Example:
- Create a new game just like in single-player mode.
- A new window will open at
http://<LAN_IP>:2345/?p=0
- This means you are player 1.
-
Invite Other Players:
- Share the address
http://<LAN_IP>:2345/?p=1
with a friend to join as player 2.- Example:
http://192.168.2.4:2345/?p=1
- Example:
- Share the address
Tips:
- Make sure all devices are on the same Wi-Fi network.
- To enable 3D rendering, add
&3d_scene
to the URL.
Example:http://192.168.2.4:2345/?p=1&3d_scene
For a WAN Game (Online Multiplayer) via Public IP
Note: You must have a public IP. If unsure, contact your Internet Service Provider (ISP).
-
Run the Game Locally First:
- Complete steps 1–3 from the LAN Game section.
-
Obtain Your WAN IP Address:
- Press
Win + R
, typecmd
, and press Enter. - In the Command Prompt, run:
curl ipinfo.io/ip
- This returns your external IP — referred to as
WAN_IP
.- This will be your
WAN_IP
. (e.g.,172.217.22.14
) - ⚠️ Do not share this publicly — it may reveal personal information.
- Note: Even if a value is returned, it may not be a usable public IP.
- This will be your
- Press
-
Configure Your Router for Port Forwarding:
⚠️ This is only needed if you’re behind a router.
Let’s assume:
- Your PC’s
LAN_IP
address is192.168.2.4
- Your router’s IP address is
192.168.1.1
- Your public IP address is
172.217.22.14
Steps:
- Open your browser and visit your router’s IP (e.g.,
http://192.168.1.1
) - Log in using your router’s username and password.
- Navigate to an option similar to “Port Forwarding” or “NAT server” (sometimes under “Advanced”, “Firewall”, or “Security”).
- Add a new port forwarding rule:
- Protocol:
TCP
orTCP/UDP
- External Zone:
WAN
- External Port:
2345
- Internal Zone:
LAN
- Internal IP: your
LAN_IP
(e.g.,192.168.2.4
) - Internal Port:
2345
- Protocol:
- Save or apply the changes.
- Wait for the router to apply the configuration.
- Test the setup:
- Try accessing
http://[router-address]:2345/?p=0
.
Example:http://192.168.1.1:2345/?p=0
- Try accessing
http://<WAN_IP>:2345/?p=0
from an external device.
Example:http://172.217.22.14:2345/?p=0
- Try accessing
- Your PC’s
-
Invite Other Players:
- Share
http://<WAN_IP>:2345/?p=1
with a friend to join as player 2.- Example:
http://172.217.22.14:2345/?p=1
- Example:
- ⚠️ Only share this with trusted individuals to avoid security risks.
- Share
For a WAN Game (Online Multiplayer) via NAT Tunneling
If you don’t have a public IP, you will need to either contact your ISP to obtain one, or use NAT tunneling software (usually paid).
Below is an example of how to use NAT tunneling software:
- Running your game on
127.0.0.1
. - Using NAT Tunneling Software
- Open Your NAT Tunneling Software
- Create a Tunnel:
- Local IP Address:
127.0.0.1
- Local Port:
2345
- Remote Port: (if needed)
2345
- Local IP Address:
- Start the Tunnel
- Click “Create” or “Start” to activate it.
- Verify Tunnel Status:
- Look for a status window or log entry with a public-facing tunnel address.
Example:https://203.0.113.45:2345
orhttps://example-tunnel.com:2345
- Look for a status window or log entry with a public-facing tunnel address.
- Test the Connection:
- Visit
https://[tunnel-address]:2345/?p=0
in your browser to play.
Example:https://203.0.113.45:2345/?p=0
orhttps://example-tunnel-server.com:2345/?p=0
- Visit
- Share the Tunnel Link:
- Send
https://[tunnel-address]:2345/?p=1
to your friend to join as player 2. Example:https://203.0.113.45:2345/?p=1
orhttps://example-tunnel-server.com:2345/?p=1
- Send
Caution:
- Only use trusted NAT tunneling software. We are not responsible for issues that may result from third-party tools.
If You Encounter Any Problems
We’re here to help! To assist effectively, please share the following:
- Game Type: Are you setting up a LAN or WAN game?
- Current Step: Which step are you stuck on?
- Actions Taken: Describe what you’ve tried so far.
- Errors or Issues: Include any error messages or unusual behavior (screenshots help!).
- Additional Info: Your operating system, network setup, and any software you’re using (e.g., NAT tunneling).
The more context you provide, the faster we can get you back to gaming!