Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Step-by-Step Guide to Start a Multiplayer Game in Version 0.5.9.4

A topic by irefrixs created 84 days ago Views: 311
Viewing posts 1 to 1
Developer (7 edits)

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)

  1. Obtain Your LAN IP Address:

    1. Press Win + R, type cmd, and press Enter.
    2. In the Command Prompt, type ipconfig and press Enter.
    3. 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)
  2. Configure the Game:

    1. Open the launch.json file in your game’s root directory.
    2. Set the value of the ip key to your LAN_IP.
      • Example: "ip": "192.168.2.4"
  3. Start the Game:

    1. Double-click marvel-lcg.exe to launch the game, and leave it running in the background.
    2. In your browser, go to http://<LAN_IP>:2345
    3. Create a new game just like in single-player mode.
    4. A new window will open at http://<LAN_IP>:2345/?p=0
      • This means you are player 1.
  4. Invite Other Players:

    1. Share the address http://<LAN_IP>:2345/?p=1 with a friend to join as player 2.

Tips:


For a WAN Game (Online Multiplayer) via Public IP

Note: You must have a public IP. If unsure, contact your Internet Service Provider (ISP).

  1. Run the Game Locally First:

    • Complete steps 1–3 from the LAN Game section.
  2. Obtain Your WAN IP Address:

    1. Press Win + R, type cmd, and press Enter.
    2. In the Command Prompt, run:
      curl ipinfo.io/ip
    3. 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.
  3. 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 is 192.168.2.4
    • Your router’s IP address is 192.168.1.1
    • Your public IP address is 172.217.22.14

    Steps:

    1. Open your browser and visit your router’s IP (e.g., http://192.168.1.1)
    2. Log in using your router’s username and password.
    3. Navigate to an option similar to “Port Forwarding” or “NAT server” (sometimes under “Advanced”, “Firewall”, or “Security”).
    4. Add a new port forwarding rule:
      • Protocol: TCP or TCP/UDP
      • External Zone: WAN
      • External Port: 2345
      • Internal Zone: LAN
      • Internal IP: your LAN_IP (e.g., 192.168.2.4)
      • Internal Port: 2345
    5. Save or apply the changes.
    6. Wait for the router to apply the configuration.
    7. Test the setup:
      1. Try accessing http://[router-address]:2345/?p=0.
        Example: http://192.168.1.1:2345/?p=0
      2. Try accessing http://<WAN_IP>:2345/?p=0 from an external device.
        Example: http://172.217.22.14:2345/?p=0
  4. Invite Other Players:

    1. Share http://<WAN_IP>:2345/?p=1 with a friend to join as player 2.
    2. ⚠️ Only share this with trusted individuals to avoid security risks.

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:

  1. Running your game on 127.0.0.1.
  2. Using NAT Tunneling Software
    1. Open Your NAT Tunneling Software
    2. Create a Tunnel:
      • Local IP Address: 127.0.0.1
      • Local Port: 2345
      • Remote Port: (if needed) 2345
    3. Start the Tunnel
      • Click “Create” or “Start” to activate it.
    4. Verify Tunnel Status:
    5. Test the Connection:
    6. Share the Tunnel Link:

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:

  1. Game Type: Are you setting up a LAN or WAN game?
  2. Current Step: Which step are you stuck on?
  3. Actions Taken: Describe what you’ve tried so far.
  4. Errors or Issues: Include any error messages or unusual behavior (screenshots help!).
  5. 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!


Helpful Links