x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

Product Version: UE 4.18
Tags:
more ▼

asked Dec 20 '17 at 05:33 PM in C++ Programming

avatar image

MarkDrago
1 1 1

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Dec 23 '17 at 05:55 AM

avatar image

Dartanlla
2.6k 62 26 281

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question