Hi guys, I got stuck on this question.
Is there anyway to do this?? I managed it for windows, but android always returns 127.0.0.1. For some reason.
1. FName My_platform =FName( *UGameplayStatics::GetPlatformName());
1. TSharedRef<FInternetAddr> localIp = ISocketSubsystem::Get(My_platform)->GetLocalHostAddr(*GLog, canBind);
1. UE_LOG(LogTemp, Error, TEXT("My platform = %s"), *UGameplayStatics::GetPlatformName());
1. UE_LOG(LogTemp, Error, TEXT("ferfererv %s") , *localIp->ToString(false));
1. return localIp->ToString(false);