Reaching a network device by IP and port using the Android emulator
问题 Why my java app for android not connect to server ? I run the aplication in android emulator, and the server wich port 9999 and host 127.0.0.1 in my pc, but just not connect and i think this method isn't good for android app. Update: I work with API 8 ... Android 2.2 ! It is work Good ! ! Thanks everybody ;) It is my source code: import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import