could not establish network connection in android emulator

232 views
Skip to first unread message

Pab .Net

unread,
Jun 16, 2011, 7:29:13 AM6/16/11
to rhomobile
i am using android emulator for running my mobile application,
in my application when i tried with login i got error as


"could not establish network connection"

can any one say me solution for this?

thanks.


Alexey Tikhvinsky

unread,
Jun 16, 2011, 12:01:00 PM6/16/11
to rhom...@googlegroups.com
Are you still able to open a network location at browser in simulator?

-alexey



--
You received this message because you are subscribed to the Google Groups "rhomobile" group.
To post to this group, send email to rhom...@googlegroups.com.
To unsubscribe from this group, send email to rhomobile+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rhomobile?hl=en.


Pab .Net

unread,
Jun 16, 2011, 1:14:05 PM6/16/11
to rhomobile
yes i am able open simulator in browser by using localhost and also
using ip address

Alexey Tikhvinsky

unread,
Jun 17, 2011, 7:28:28 AM6/17/11
to rhom...@googlegroups.com
I asked slightly another.

You have to be able open Android browser in Android simulator. In the browser you have to be able to open any network location (www.google.com for example).
If it works well this means Android simulator has network connection and that is first step to target your problem.

-alexey

Pab .Net

unread,
Jun 17, 2011, 7:47:39 AM6/17/11
to rhom...@googlegroups.com
ya i can open browser in android simulator and also i can open websites

evgeny vovchenko

unread,
Jun 17, 2011, 9:55:48 AM6/17/11
to rhom...@googlegroups.com

are you login to local server?

you should use IP address not 127.0.0.1 or localhost as server name

 


Pab .Net

unread,
Jun 18, 2011, 10:38:42 AM6/18/11
to rhom...@googlegroups.com
i can login in server no problem in that, i can also create user but the problem is with simulator i can't login in my application in simulator

evgeny vovchenko

unread,
Jun 18, 2011, 4:14:05 PM6/18/11
to rhom...@googlegroups.com

what sync server address you use from simulator?

Pab .Net

unread,
Jun 19, 2011, 3:51:49 AM6/19/11
to rhom...@googlegroups.com
i used both localhost:9292 that is 127.0.0.0:9292 and also my ip address

evgeny vovchenko

unread,
Jun 19, 2011, 8:38:44 AM6/19/11
to rhom...@googlegroups.com

real IP address should work

try to open sync server url in emulator browser

Pab .Net

unread,
Jun 20, 2011, 12:23:43 AM6/20/11
to rhom...@googlegroups.com
i have opened sync server  url in emulator browser  its opening, but still i can't login into my application in androind emulator and  it shows only "could not establish network connection"

Pab .Net

unread,
Jun 20, 2011, 2:30:30 AM6/20/11
to rhomobile
i have changed localhost to ip address in rhoconfig.txt and now i can
login

thanks for help

Reply all
Reply to author
Forward
0 new messages