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"

Android as host not working

I'm having big troubles getting android as the host working.

I'm testing with the Multiplayer Shootout to ensure it's easy to reproduce with 4.10. The only thing I changed in that project was changing the OnlineSubSystem in the DefaultEngine.ini like so:

 [OnlineSubsystem]
 DefaultPlatformService=Null

What works:

  • Windows as host android as client

What doesn't work:

  • Android as host windows as client

  • Android as host different android device as client

Log on android device as I start it as the host ("Create Session"):

 11-30 19:59:30.256: D/UE4(24913): [2015.11.30-18.59.30:263][64000]LogInit: BSD: I am localhost (127.0.0.1:0)
 11-30 19:59:30.391: D/UE4(24913): [2015.11.30-18.59.30:398][64000]LogPackageName: SearchForPackageOnDisk took   0.129s to resolve Level_01.umap.
 11-30 19:59:30.491: D/UE4(24913): [2015.11.30-18.59.30:498][64000]LogPackageName: SearchForPackageOnDisk took   0.087s to resolve Level_01.umap.
 11-30 19:59:30.491: D/UE4(24913): [2015.11.30-18.59.30:499][64000]LogNet: Browse: /Game/Maps/Level_01?listen
 11-30 19:59:30.496: D/UE4(24913): [2015.11.30-18.59.30:499][64000]LogLoad: LoadMap: /Game/Maps/Level_01?listen
 11-30 19:59:30.541: D/UE4(24913): [2015.11.30-18.59.30:546][64000]LogParticles: Destroying 0 GPU particle simulations for FXSystem 0x0x96a62390
 11-30 19:59:31.041: D/UE4(24913): [2015.11.30-18.59.31:047][64000]LogAIModule: Creating AISystem for world Level_01
 11-30 19:59:31.046: D/UE4(24913): [2015.11.30-18.59.31:050][64000]LogWorld: Game class is 'MyGameMode_C'
 11-30 19:59:31.051: D/UE4(24913): [2015.11.30-18.59.31:056][64000]LogInit: BSD: Socket queue 262144 / 262144
 11-30 19:59:31.051: D/UE4(24913): [2015.11.30-18.59.31:058][64000]LogNet: GameNetDriver IpNetDriver_0 IpNetDriver listening on port 7777
 11-30 19:59:31.086: D/UE4(24913): [2015.11.30-18.59.31:092][64000]LogWorld: Bringing World /Game/Maps/Level_01.Level_01 up for play (max tick rate 0) at 2015.11.30-19.59.31
 11-30 19:59:31.091: D/UE4(24913): [2015.11.30-18.59.31:095][64000]LogWorld: Bringing up level for play took: 0.019772
 11-30 19:59:31.126: D/UE4(24913): [2015.11.30-18.59.31:132][64000]LogScript:Warning: Accessed None 'CallFunc_K2_GetPawn_ReturnValue'
 11-30 19:59:31.126: D/UE4(24913):     MyGameMode_C /Game/Maps/Level_01.Level_01:PersistentLevel.MyGameMode_C_0
 11-30 19:59:31.126: D/UE4(24913):     Function /Game/Blueprints/MyGameMode.MyGameMode_C:ExecuteUbergraph_MyGameMode:045F
 11-30 19:59:31.151: D/UE4(24913): [2015.11.30-18.59.31:158][64000]LogOnline:Warning: NULL: Can't start an online session (Game) in state InProgress
 11-30 19:59:31.161: D/UE4(24913): [2015.11.30-18.59.31:167][64000]LogScript:Warning: Accessed None 'Widget'
 11-30 19:59:31.161: D/UE4(24913):     MyGameInstance_C /Engine/Transient.GameEngine_0:MyGameInstance_C_0
 11-30 19:59:31.161: D/UE4(24913):     Function /Game/Blueprints/MyGameInstance.MyGameInstance_C:Hide Widget:000A

Similar to the problem mentioned here without resolve: [url]https://forums.unrealengine.com/showthread.php?69417-Local-Wifi-Multiplayer-without-using-Google-Play[/url] and here also without resolve: [url]https://answers.unrealengine.com/questions/301315/android-host.html[/url]

I have not been able to find anywhere how to get android as the host working. The end result I'm trying to achieve is android to android connection for a mutliplayer game over a local wifi both devices are connected to.

Is there some other config required for android?? Is Android as a host working at all???

Any help appreciated!

Product Version: UE 4.10
Tags:
more ▼

asked Nov 30 '15 at 07:44 PM in Blueprint Scripting

avatar image

aussieburger
1.5k 43 176 75

avatar image FuTou Sep 24 '16 at 06:17 PM

Oh , this issue definitely needs fixing!

avatar image aussieburger Sep 25 '16 at 09:45 AM

Fixed in 4.12+ btw ;) at least for local wifi

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

As per PM from AussieBurger.

At least some Android devices do not seem to resolve their own local host addresses properly (every distro is different) meaning that Android can't act as a server. I don't have an Apple device on hand, but looking at the source code IOS should work fine.

Whether mobile devices have the CPU performance to act as a server is a separate question/issue.

I have issued a pull request on github that fixes the 'Android unable to resolve local host address' issue.

more ▼

answered Dec 01 '15 at 10:01 PM

avatar image

psychogony
246 7 3 9

avatar image aussieburger Dec 03 '15 at 11:54 AM

FYI: I tested psychogony's pull request and it fixes the problem for me. Hopefully Epic can review tidy up and include natively

avatar image Clothar Jan 28 '16 at 10:08 PM

Hey Aussieburger, Have you filed a bug report any where for this issue?

avatar image aussieburger Apr 06 '16 at 06:27 AM

Chris reported it's fixed in UE4.12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi!

You cannot create host using Android. For Mobile, HTML5 and consoles you can build client only. If you developing multiplayer game for mobile devices, you must build Dedicated (Standalone) Server on Linux or Windows platforms.

more ▼

answered Dec 01 '15 at 12:26 PM

avatar image

svv3dUDN
8.5k 255 43 400

avatar image aussieburger Dec 01 '15 at 04:31 PM

Hi thx for the reply,

Are you sure? I don't mean android as a dedicated host but rather android running the client and having another android device connect to it - I have another forum member here who says he was able to do this on his Nexus 5: https://forums.unrealengine.com/showthread.php?81849-4-9-New-Mobile-Features!-Live-at-Epic-HQ&p=365420&viewfull=1#post365420

I'm trying to check with him but would be great if Epic could really clear that up - I think I even saw a Epic twitch stream where they were trying to connect a oculus dk2 and gearvr on some dragon fly multiplayer demo where it also did not connect to the gearvr (ie: android) device

avatar image XNAShaker Dec 01 '15 at 06:24 PM

The user TheJamsh claims that an android client can join to an android host (or is here a misunderstanding): "What we've done before is used local LAN-based WiFi between Android tablets and PC (but Android-Android also works fine) - with a WiFi router."

https://forums.unrealengine.com/showthread.php?89362-Mobile-Multiplayer

avatar image aussieburger Dec 01 '15 at 07:35 PM

Ok I managed to get it working! By connecting via console commands with "open ipaddressOfMyAndroidDevice" instead of the blueprint node "Join Session"

So this appears to be a bug with the "Blueprint Session Result" variable not giving the correct IP of the android host?

Is there anyway to get the server IP address in the client? Currently it seems like it only supports Server Name :(

avatar image XNAShaker Dec 02 '15 at 04:05 PM

You are absolutely right! It works for me too! This is a bug and we need to tell Epic about this issue.

avatar image mhnoni Dec 03 '15 at 10:19 AM

so any comment we got from Epic team ? if its a bug when can we expect to get fixed ?

avatar image Clothar Jan 28 '16 at 10:11 PM

I am working for this issue as well. Can you explain what you did in greater detail for me?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hello, everyone.

I really like to make a multiplayer android game I would be very grateful if you could throw some light on it.

Thank you,

more ▼

answered May 29 '17 at 07:52 AM

avatar image

SlimAndCute
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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