Announcement

Collapse
No announcement yet.

Android local IP address

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Android local IP address

    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.
    Code:
    1. FName My_platform =FName( *UGameplayStatics::GetPlatformName());
    2. TSharedRef<FInternetAddr> localIp = ISocketSubsystem::Get(My_platform)->GetLocalHostAddr(*GLog, canBind);
    3. UE_LOG(LogTemp, Error, TEXT("My platform = %s"), *UGameplayStatics::GetPlatformName());
    4. UE_LOG(LogTemp, Error, TEXT("ferfererv %s") , *localIp->ToString(false));
    5. return localIp->ToString(false);

    #2
    I have the same problem! Windows works great. Android, definitely not useful.

    Comment


      #3
      did you solve it ? i really need it

      Comment

      Working...
      X