How to create a working listen server and have someone connect over the internet

Alright, I have watched the Networking Tutorials on Unreals’ youtube channel 3 Times [the entire thing episode 1-6] I understand the entire go abouts of Replication and The importance of doing the code on the server, When I launch my game in my editor to play on multiple instances it works flawlessly. But I have no idea how to actually make a server where I can get my game to my friend so we can test it together. I have forwarded the ports 7777 and given him my IP. Wat-do-i-do When he does [not a real ip] “open 45.56.13.58” nothing happends…

1 Like

I know exactly how to port forward, I don’t need to use Himatchi. I am not greenlit. I want to know how to make a private listen server for testing purposes…

Shamless self promotion

2.5 hours about setting up steam servers in BP’s How to Setup Steam Multiplayer in Unreal Engine 4 Blueprints - Entire Guide - YouTube

Its not so easy to just get an IP and a port to connect to. Himatchi maybe?

Let me know if this helps
Don’t forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.

Using the steam OSS its as simple as adding listen to the openLevel node?

The server needs to open the level in listen mode, this is accomplished by adding “?listen” to the end of the map name. Something like TravelToMap node with “MyMapName?listen”. Don’t have the editor here, so unfortunately I can’t give you any screenshots right now.

For local testing, I recommend you test it with multiple “real” instances, and not with instances out of the editor, as the editor automatically start the map in listen mode, when you select to launch multiple instances.

For starting multiple “real” instances, simply right-click on your .uproject file and select “Launch Game”. You can do this mutliple times, and each will launch a “real” instance. See if you can connect the instances together. If this works, it will also work via internet, provided you have the correct ip/port and port forwarding settings (and maybe check firewall for good measure).

Cheers, Elewyth

1 Like