I think you can use USB tethering (provided your device/carrier let you) and use the local ip assigned to the PC's side of the usb link. Wifi should also work.
On Fri, Jan 4, 2013 at 2:27 PM, bob <b...@coolfone.comze.com> wrote: > Maybe use an Ethernet cable to connect your web server to your Wifi router? > > > You need to put the web server on the Wifi LAN. > > > > On Friday, January 4, 2013 3:58:53 PM UTC-6, John Merlino wrote: >> >> I have ruby on rails web server that my android application talks to. >> When I connect to 10.0.2.2 on android simulator, it successfully makes >> contact to web server. However, it does not when I test it on the >> actual android device using a usb connection and using eclipse. I am >> forced to use the real live ip address, but I dont want to have to >> deploy live for every little change i need to make when testing on >> device. What options are available? >> > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en