Connect Android devices using Direct WiFi

Hello!
I’ve set up a basic networking project. I’m trying to connect 2 or more devices to each other while they’re direct-wifi connected.
The devices already find each other if they’re on the same network, that much is working as intended.

Is ue4 set up to handle direct wifi connections? what’s the expected behavior in this case?

I’ve googled like crazy trying to find information about this with not much luck. Although i found an answehub post that says direct wifi works, though for me it really doesn’t.
I have access to android.permission.INTERNET, android.permission.ACCESS_NETWORK_STATE, android.permission.ACCESS_WIFI_STATE, and android.permission.CHANGE_WIFI_STATE. Those are the permissions that i could gather were there ones that needed to be allowed, and they are. If I check the permission using the “check permission” node, they all return true.

In fact, ue seems to only be willing to even look for sessions if the devices is connected to a wifi network. if the only connection is wifi direct, it’s fails the same frame.

Is there something else I’m missing?

Thanks for any help.

update: i notices that when the devices are wifi direct connected a network connection for the other devices appears in the wifi list called “direct-devicename”.bu man, after like 3 hours googling, for the life of me, no one seems to have any clue as to how to set the password that connection asks for =O i wonder that if i do manage to connect using that network options, will unreal attempt an actual search?

hey Sargas Evigmae You Solve it using Direct WiFi ??

I ended up giving up a long time ago. But you could probably do it if you’re able to implement the appropriate android libraries on the engine, which is way beyond my skill.

but it possible or not ?

It’s an open source C++ engine. anything is possible. you just have to do it yourself. the engine doesn’t support it out-of-the-box.

thank buddy

Wi-Fi Direct is not enabled by default in Unreal Engine 4 (UE4). This may be your issue. Android connects directly to Wi-Fi via WifiP2pManager. UE4 doesn’t have this API, therefore you must manually add it. Halo H30 | AC1200 Whole Home Mesh Wi-Fi System - Welcome to MERCUSYS

UE4 doesn’t support Wi-Fi Direct for multiplayer by default; so you must manually add it. You can set up Wi-Fi Direct sessions using C++ networking code or third-party Android networking apps that function better with direct Wi-Fi connections. Deco X80 | AX6000 Dual-Band Mesh WiFi 6 System | TP-Link Philippines