Skip to main content

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

Help setting up multiplayer

A topic by colbacco created Feb 18, 2025 Views: 246 Replies: 5
Viewing posts 1 to 5

Hi,

I am trying to host an online game, I followed the directions I found and replaced the ip in launch.json with my public IP. However, when I go to run marvel-lcg.exe the console quits on me almost immediately and shows this message for a moment.

What am I doing wrong?

Thanks for the help!

Developer(+1)

Hi colbacco,

Thanks for reaching out!

The issue you’re experiencing is likely due to port 2345 being in use on your system. To resolve this, you can try using a different port. Please update the port value in your launch.json file to a new port number that is not currently in use.

If you need further assistance or have any questions about how to change the port, feel free to ask!

Thanks for the help!

I have tried setting a free port, however I get the same error.

Obviously, by resetting the localhost as IP I have no problem...

Developer(+1)

Hi @colbacco,

Thank you for your response.

Another reason the game may crash is if you have entered an incorrect IP address. For example, if your LAN IP is 192.168.8.64, but you typed 192.168.2.32, that could cause issues.

If your PC does not have a public IP, you will need to configure “Port Forwarding” on your router. Here’s how you can do it:

  1. Let’s say your PC’s local IP address is 192.168.8.64, and your router’s IP address is 192.168.2.32.
  2. Set up “Port Forwarding” on your router to forward port 2345 to your PC’s IP address and port (192.168.8.64:2345).
  3. In your launch.json, set the IP to 192.168.8.64 and the port to 2345.
  4. You should then be able to access the game by visiting http://192.168.2.32:2345.

Additionally, please check your PC’s firewall settings to ensure that the game is allowed internet access.

If you have any further questions or need assistance, feel free to ask!

Thanks again for your help!

With your step-by-step guide I double-checked all the steps and realised I was doing the port forwarding wrong (it's been several years since I hosted Minecraft servers 😅)

Now it works like a charm

Thank you so much again and congratulations on the amazing project you put together

Developer(+1)

Hi @colbacco,

You’re very welcome! I’m glad to hear that the step-by-step guide helped you sort out the port forwarding issue. It’s easy to overlook things after a while, so no worries at all!

Thank you for your kind words about the project. I really appreciate it! If you have any more questions or need further assistance, feel free to reach out.

Happy gaming!