# Android as host not working

**URL:** <https://forums.unrealengine.com/t/android-as-host-not-working/340148>\
**Category:** Mobile\
**Tags:** host, unreal-engine, Multiplayer, Android, question\
**Created:** [November 30, 2015, 7:44pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148 "2015-11-30T19:44:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [November 30, 2015, 7:44pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/1 "2015-11-30T19:44:32Z")

</div>

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: [https://forums.unrealengine.com/showthread.php?69417-Local-Wifi-Multiplayer-without-using-Google-Play](https://forums.unrealengine.com/showthread.php?69417-Local-Wifi-Multiplayer-without-using-Google-Play)  
and here also without resolve: [https://answers.unrealengine.com/questions/301315/android-host.html](https://answers.unrealengine.com/questions/301315/android-host.html)

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!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [December 1, 2015, 12:26pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/2 "2015-12-01T12:26:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [December 1, 2015, 4:31pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/3 "2015-12-01T16:31:04Z")

</div>

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: [4.9 New Mobile Features! - Live at Epic HQ - Announcements - Unreal Engine Forums](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

---

<div class="post-metadata">

**Author:** ![XNAShaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XNAShaker](https://forums.unrealengine.com/u/XNAShaker)\
**Post date:** [December 1, 2015, 6:24pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/4 "2015-12-01T18:24:52Z")

</div>

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.”

> **[Mobile Multiplayer](https://forums.unrealengine.com/showthread.php?89362-Mobile-Multiplayer)**
>
> Can I please request you add multiplayer for iOS and Android. It used to work in UDK if that helps 🙂 It seems that this is a pretty big limitation with the mobile platform right now. Even if you could implement local multiplayer using beaconing over...

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [December 1, 2015, 7:35pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/5 "2015-12-01T19:35:44Z")

</div>

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 ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f1d9eaa9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f1d9eaa9](https://forums.unrealengine.com/u/anonymous_user_f1d9eaa9)\
**Post date:** [December 1, 2015, 10:01pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/6 "2015-12-01T22:01:20Z")

</div>

As per PM from .

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.

---

<div class="post-metadata">

**Author:** ![XNAShaker](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XNAShaker](https://forums.unrealengine.com/u/XNAShaker)\
**Post date:** [December 2, 2015, 4:05pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/7 "2015-12-02T16:05:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mhnoni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mhnoni](https://forums.unrealengine.com/u/mhnoni)\
**Post date:** [December 3, 2015, 10:19am UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/8 "2015-12-03T10:19:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [December 3, 2015, 11:54am UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/9 "2015-12-03T11:54:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_09936e4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_09936e4a](https://forums.unrealengine.com/u/anonymous_user_09936e4a)\
**Post date:** [January 28, 2016, 10:08pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/10 "2016-01-28T22:08:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_09936e4a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_09936e4a](https://forums.unrealengine.com/u/anonymous_user_09936e4a)\
**Post date:** [January 28, 2016, 10:11pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/11 "2016-01-28T22:11:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [January 28, 2016, 10:40pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/12 "2016-01-28T22:40:35Z")

</div>

XNAshaker filed one after this here:

> **[Bug: Join Session Node not working for Android](https://forums.unrealengine.com/questions/341858/bug-join-session-node-not-working-for-android.html)**
>
> As the user aussieburger found out, the Join Session Blueprint node is not working for Android (maybe for more platforms). It seems that the ip address is not correctly handed over, so the problem lies more specifically at the Find Sessions node. An...

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [January 29, 2016, 4:30pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/13 "2016-01-29T16:30:52Z")

</div>

temporary pain in the [butt] workaround here:

> **[Android multiplayer wlan: Android as host device problem](https://forums.unrealengine.com/showthread.php?92986-Android-multiplayer-wlan-Android-as-host-device-problem&p=447622&viewfull=1#post447622)**
>
> 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...

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [April 6, 2016, 6:27am UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/14 "2016-04-06T06:27:39Z")

</div>

reported it’s fixed in UE4.12

---

<div class="post-metadata">

**Author:** ![FuTou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FuTou](https://forums.unrealengine.com/u/FuTou)\
**Post date:** [September 24, 2016, 6:17pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/15 "2016-09-24T18:17:24Z")

</div>

Oh , this issue definitely needs fixing!

---

<div class="post-metadata">

**Author:** ![aussieburger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aussieburger](https://forums.unrealengine.com/u/aussieburger)\
**Post date:** [September 25, 2016, 9:45am UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/16 "2016-09-25T09:45:12Z")

</div>

Fixed in 4.12+ btw 😉 at least for local wifi

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_ad25bc7a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ad25bc7a](https://forums.unrealengine.com/u/anonymous_user_ad25bc7a)\
**Post date:** [May 29, 2017, 7:52am UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/17 "2017-05-29T07:52:22Z")

</div>

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,

---

<div class="post-metadata">

**Author:** ![hossamxnowiser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hossamxnowiser](https://forums.unrealengine.com/u/hossamxnowiser)\
**Post date:** [November 15, 2019, 7:42pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/18 "2019-11-15T19:42:06Z")

</div>

how to solve this its 2019 and i cant find any good tutorial  
thx

---

<div class="post-metadata">

**Author:** ![mightyenigma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mightyenigma](https://forums.unrealengine.com/u/mightyenigma)\
**Post date:** [November 15, 2019, 10:01pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/19 "2019-11-15T22:01:31Z")

</div>

I have had no problem getting this to work (local WiFi multiplayer) on Android to Android or Android (server) to PC (client), using the unreal engine you get from the Epic launcher (not source build).  
My project is Blueprint (with 1 C++ class added to expose splitscreen flag to blueprints). No dedicated server involved. It’s wifi only so it doesn’t rely on any online subsystem (set it to NULL) such as a dedicated server or Steam would involve.

I have gotten this to work with no changes to my game designed for PC LAN.

The versions I have used are 4.19, 4.20. and 4.23

I think I used NULL (all caps) instead of Null in the ini file though.

On some Android devices however, I have to start the game, turn WiFi off, then back on again, before I can join a PC hosted game. But all other use cases work without any problems.

TL;DR: This works for WiFi. It’s worked for a long time. If you’re still having problems, maybe I can help you figure it out. It is possible the Android you’re testing on is unable to act as a server due to device limitations.

---

<div class="post-metadata">

**Author:** ![hossamxnowiser](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hossamxnowiser](https://forums.unrealengine.com/u/hossamxnowiser)\
**Post date:** [November 16, 2019, 1:50pm UTC](https://forums.unrealengine.com/t/android-as-host-not-working/340148/20 "2019-11-16T13:50:08Z")

</div>

thank you for replaying  
i use a _Advanced Sessions_ plugin in my project  
i dont use c++  
i test this in several devices and it not work i can link the android device to pc (the host)  
but i cant get it work android to android  
what is work:  
1- i can host a server on device 1  
2- i can search for the host and i found its name from device 2  
3- when i click to join nothing happens  
can you send me how you do this it will help me so much  
and sorry for my bad English

thx again for your kindness

[Next page](https://forums.unrealengine.com/t/android-as-host-not-working/340148.md?page=2)
