Hey, I'm currently developing with Android, using the emulator device Pixel 5 API 30 to test my code. However, when I use the following: InetAddress.getLocalHost().getHostAddress(), it returns 127.0.0.1, which is a loopback address, not the IP address of the emulator. Is this something I can fix? I'm writing code that will use this IP address to establish an ethernet connection. Any help/guidance would be great, thanks!
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/440ebdb1-b065-4371-b5d7-615cddb0bde4n%40googlegroups.com.

