Download

Android multiplayer wlan: Android as host device problem

Did they fix the problem of it returning localhost in 4.24 or 4.25?

I’m about ready to downgrade my project back to 4.22 where it was working for Android on LAN…

Now on 4.24.3 it only can join by “open my.local.ip.address” sometimes. Doesn’t work most times. Never figured out why. Anyone know anything?!!

this fixes the problem of 4.23 too (maybe it will fix 4.24, 4.25, 4.26 same problem, but I don’t check)
but you have to add #if PLATFORM_ANDROID around changes in SocketSubsystemAndroid.cpp file then it would works
I just changed the FSocketSubsystemAndroid::GetLocalHostAddr method and it helps me and fixed all problems with hosting and connecting to the existed game. All of these fixes also work in blueprints!!!