Can an android device be listen sever or host of a game?

Hi.

I wanted to know if I can make a multiplayer mobile game that one device be host and nearby devices be able to join via WiFi or Bluetooth without having to be connected to the internet or a PC.

is there any tutorial or helpful documentation about it?

I saw some posts about it in aswerhub but did not help much. I could not find any certain answer.

Since it does work out of the box now: Android as a host over local WiFi
What does not work out of the box is Android as a host over the internet

thank you for your reply.

now the only confusing thing about it for me is that I do not know how to access to WiFi IP or other WiFi option from the engine(Blueprint)

do players have to find their IP address and enter that manually?
is it possible to make it simple so players only should select to be a server or client ?

can you please tell me some tips about it?

I need more help with it

It is possible to enter the IP address manually however that is definitely not very user friendly.

How I learnt to do it was to use the “Multiplayer Shootout” example project from the Learn tab of UE4 provided by Epic → I turned off mobile HDR to get better performance and then after I saw it working on android I started to pull the blueprints apart to see how it works :slight_smile:

that example is also documented here:

The only “trick” for android is to add the following to the defaultEngine.ini file in your projects config folder:

[OnlineSubsystem]
DefaultPlatformService=null