Below is the settings what i got when i checked *adb shell netcfg* System Directory: C:\Windows\system32# netcfg netcfg lo UP 127.0.0.1 255.0.0.0 0x00000049 eth0 UP 10.0.2.15 255.255.255.0 0x00001043 tunl0 DOWN 0.0.0.0 0.0.0.0 0x00000080 gre0 DOWN 0.0.0.0 0.0.0.0 0x00000080
Is that possible to define same network configuration on my Android Device? I think if i can set-up same configuration i'll be able to sync. On Mon, Nov 19, 2012 at 1:50 PM, Anees Thyrantakath <[email protected]>wrote: > Hi, I tried *adb forward 194.178.100.1:1433 tcp:8080* which is a *private > ip*..got error *cannot bind socket *on cmd prompt. > > > On Mon, Nov 19, 2012 at 11:30 AM, Anees Thyrantakath > <[email protected]>wrote: > >> Hi Andrew Mackenzie, I created an Andriod app that read/write to a *Microsoft >> SQL-Server Database 2008 R2* database running on Server. Through using >> Emulator(in my local PC) i'm able to sync data. >> >> Problem comes while syncing the same app using USB Debugging in real >> Device. While Trying to connect Using USB getting the following error >> 07-11 05:41:02.920: W/Error connection(2757): Network error IOException: >> failed to connect to /194.178.100.1 (port 1433): connect failed: >> ENETUNREACH (Network is unreachable) >> >> I'm syncing data from SQLite (sits in Android App) to SQL-Server Database >> Over IP. >> >> As if now i didn't try the Option of Port Forwarding Let me try the way >> as you mentioned. >> >> Thanks alot for your reply. >> >> Best Regards, >> Aadi >> >> >> On Sat, Nov 17, 2012 at 5:02 PM, Andrew Mackenzie < >> [email protected]> wrote: >> >>> Aadi, just to understand more what you want: >>> >>> You're trying to have an Android app read/write to a SQLite database >>> running on your PC, using the USB connection? >>> >>> That doesn't sound easy, and I'm not sure it's possible. >>> >>> To get access over IP to the PC you will have to start by using the >>> loopback address of 10.0.2.2, not 127.0.0.1 which is the local address >>> INSIDE the android phone where the app is running. >>> >>> I suggest start with a simple test to check you can reach your PC from >>> Android. >>> Try running a web server on your PC and loading a page from it from the >>> Android browser using the 10.0.2.2 address. >>> >>> If you want to sync two SQLite databases (one on Android device and >>> another on the PC) over IP, then that's different - and I'm interested to >>> know more about your needs there....(changes on either side, synced, >>> conflict resolution, etc). >>> >>> -- >>> 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 >>> >> >> > -- 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

