title: Get local IP address of the PC in Android
body: <p>I am running some Android code in an Android emulator on a PC. I want to get the local IP address of the PC in my Android code, not sure whether this is possible...</p>
  
  <p>I've checked the following post
  <a href="https://stackoverflow.com/questions/10118590/how-to-get-ip-address-of-pc-in-android-emulator-through-code">how to get ip address of pc in android emulator through code</a>
  But looks like it can only give me the public IP address of the PC.</p>
  
  <p>Thanks.</p>