Connecting multiple players in android to a server

Hi,

Im trying to understand how to do a certain thing that has 0 documentation on google.
I want to create an android game in UE4 and have multiple players play against each other.
I can’t find a single tutorial on the subject of actually connecting multiple players to a match.
I dont mind using a Backend-as-a-service but as long as its a Host and multiple players and NOT a Host-player against joining players.
I know AWS and have an EC2 ready to go and also know C++ in Unreal and im great at scripting, but when i compiled a dedicated server (for PC) and try to connect the Android version to it - it fails.

What are the ways i can use to connect the multiple players to a match? how can i make them find each other?
if its easier to launch a dedicated and connect them manually to the IP, how can i create such a server and run it on EC2 and then connect the two android users?

Please help me, i can’t find any solution on the internet

Thank you for anyone who helps.

1 Like

What you want to do is run a dedicated server on your local development PC for testing. You can then point the UE4 client on your Android devices to the external IP of your local development PC. You will need to do the following to set this up:

Setup port forwarding to forward ports in the 7777 to 7778+ range to your local development PC
Add firewall rules to Windows firewall for this range
Start your project (you don’t have to compile a dedicated server) with the UE4 Editor using a bat file like this:

C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\Win64\UE4Editor.exe “C:\Users[YourUserName]\Documents\Unreal Projects\OpenWorldStarterTest\OpenWorldStarter.uproject” MapName?listen -server -log -nosteam -messaging -port=7778

You will have to replace some sections in the above to get it to work, but that is the idea.

2 Likes

And then once you have that working you can worry about building a dedicated server build from the engine source code from the git repo.

Is it on fortnite