Setting up a listen server for a multiplayer game

So I am working on this project to create a multiplayer game with a listen server architecture, meaning that one player would be the host and the player at the same time. Is it possible for this type of multiplayer architecture to work if the players are on different networks and different geographical locations, and if possible, how would this be achieved?

If it is something like this vid, then it is possible:

It is possible, but it is not easy, as you need to set up things.

I believe you need to port forover the port 7777 that you make on your router or use Hamachi, almost like people do for making a server for Minecraft.

then you need to make a widget that you make a session, and the same widget can be used for users to type the IP to connect to and as button and/ or press the enter key to confirm.

Optional: you can make a fake loading screen, that will disappear when you load on the map, using the Map BP, think can also have timer (60 sec) if it cannot connect, then the widget can give you a message, something like: “Can’t find the server” or “No server found”

If you want it in BP, then watch this video, you only need the server part:

you can use this webpage to test if you server is online, change the port from 80 to 7777 and press Check Port:

This webpage does not use the 127.0.0.1 local IP address, but your current IP address, you can use 127.0.0.1 to test if your server run on your PC, as a local server.

If this did help you, please mark it as resolved, if not, tell me and I will try to help you.

1 Like

Sorry for the late reply, got caught up in college stuff.

As for the first video you sent me, my project is more like a strategy card game, but the point is the same - listen server architecture, it’s the same concept like in the video.

So i followed the steps from the video and the Session creation works fine, but when i port forwarded 7777 and my public IP i couldn’t connect to the host at all. I did the exact same thing from the video, and when i was reading the comments over there they were mentioning static and dynamic IP addresses from ISP-s. Even the Open Port Check Tool couldn’t detect the open port even though i did forward it from the settings.

Earlier, I could connect on my local machine but that is not the point, the goal is to connect from different networks and geographical locations.

So I am not sure what would the next steps be…