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"

Network Connection via Wifi Direct

Hi there...

I have followed this tutorial about making a multiplayer game using blueprint on Unreal Engine 4.12 source version(compiled):

tutorial Link

now that I have finished my job, when I export it for android and try to connect some devices via Wifi direct, I can't connect my game to other devices!!! I know that the server of the game must be hotspot. I think I can make session successfully because the lobby map is opened(Option is listen)!... but other clients can't find server session.. this is my settings on DefaultEngine.init

 [OnlineSubsystem]
 DefaultPlatformService=Null

also I have added these two permissions!

 android.permission.INTERNET
 android.permission.ACCESS_NETWORK_STATE

once my laptop (win10 64x) was as hotspot and also it was the server of the game and I could not connect my android ported game(from my tablet) to my laptop!!! (they were connected via Wifi direct) once my android device was as hotspot and other android device was as client but I could not connect clients to hotspot server as owner of session...!!! what I have to do? can I connect (my game) clients to (my game)server via wifi direct?? also I don't know what I have to see on logcat to know the reason of issue(on Monitor.exe)!!! thanks a lot..

Product Version: UE 4.12
Tags:
more ▼

asked Oct 08 '16 at 08:17 PM in Blueprint Scripting

avatar image

++Hadi++
13 1 6 7

avatar image saeedc Oct 09 '16 at 04:59 PM

Hi Hadi

I have already done this tutorial link text which works perfectly on android when two devices are connected to my wifi modem

avatar image ++Hadi++ Oct 09 '16 at 09:10 PM

Hi..thanks to reply... wifi modem?!! I want to connect 2 devices that are connected via Wifi Direct. without having modem or ... between, so if you'r sure you did it via Wifi-Direct,just I want to know: 1-what permissions have you added? 2-is your OnlineSubSystem settings like my settings on DefaultEngine.ini file? 3-what is your engine version? I don't know why clients can't join to sessions!!? some times a client can't release searching for active session even after 5 minutes!!! thanks...

avatar image saeedc Oct 09 '16 at 10:04 PM

I could not connect 2 devices directly via wifi.

I think there must be something as access point.

There is a free plugin named (advanced sessions) which you can download from forum. I used that plugin

avatar image ++Hadi++ Oct 09 '16 at 10:49 PM

thanks... so I will try it.. but I think I can connect they directly because some people said, they can do it properly! thanks a lot...

avatar image saeedc Oct 09 '16 at 11:41 PM

Tell me please if you find out how to.

avatar image ++Hadi++ Oct 10 '16 at 07:41 AM

yeah..as soon as I can...thanks dude..

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

1 answer: sort voted first

[SOLVED] I have solved it using BluePrint.. just go to and follow [this Video tutorials][1]. then you must open DefaultEngine.init and set:

[OnlineSubsystem] DefaultPlatformService=Null

and add all permissions like:

android.permission.INTERNET

android.permission.ACCESS_NETWORK_STATE

I think there were some other permissions for wifi and network, you can search on android central website. then you can export you game and install it on some devices (android/windows were tested) then you can connect your game via wifi direct or by Modem(just connect some devices to a specific wifi modem and play multiplayer with your connected friends via modem). this was solved 1 year ago on UE4.12, good luck...
[1]: https://docs.unrealengine.com/latest/INT/Videos/PLZlv_N0_O1gYqSlbGQVKsRg6fpxWndZqZ/abmzWUWxy1U/index.html
more ▼

answered Aug 08 '17 at 10:45 AM

avatar image

++Hadi++
13 1 6 7

avatar image Sargas Evigmae Aug 09 '17 at 05:38 PM

Are you sure that when you tried wifi direct the devices werent connected on the same network too? I can get devices of all kind to connect in any and all directions on lan, but cant get them to find sessions when on wifi direct only...

avatar image ++Hadi++ Aug 12 '17 at 05:56 AM

as I remember, we tested our simple game on windows and android, so we could connect together by various platforms and I remember most of errors about wifi connection was solved on UE4.12...

avatar image ++Hadi++ Aug 12 '17 at 05:58 AM

but I'm not sure that android was as server device or windows was server.

avatar image Sendy50 Apr 12 '19 at 09:33 AM

Here your both device are connected to same WiFi/Network so it easily work for all but here problem is Two Android Devise A1 And A2. A1 Was Created Hotspot And A2 Connected to A1's created hotspot. And Now Created Problem When A1 Host A game But A2 Not Found A1's Session.

(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