On Friday, March 2, 2012 3:16:12 AM UTC-5, vvis wrote: > > That is, > when I tried to send data stream from Simulator to PC, as PC's address > being 10.0.2.2, the PC can receive data stream from > Simulator(10.0.2.2). I just guess there is somewhat THREAD running on > the Simulator. >
The 10.0.2.2 etc capabilities are unique to the emulator and not ordinarily shared by real devices. The adb port forwards you were trying to use earlier do work on real devices, but you have to make the phone the server and the pc the client, ie, the PC can initiate a connection to the phone, but the phone cannot initiate a connection to the pc. When using port forwards you do indeed use the loopback address, since you are actually contact a local port, which gets forwarded to a remote one by adb. > And you said that I should setup a network between the PC and the > android phone, I tried the Internet Tethering. And now, it works! > > I don't get what is reverse tethering yet, but I will go in deeper > steps. > Various tether capabilities may enable this, or have the side effect of putting the phone and computer on a network segment. Just be sure you don't accidentally route all the pc's network traffic through the phone's mobile network (unless you mean to) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

