To be clear: *This simply cannot work. *
localhost, or 127.0.0.1 is like saying 'myself'
If you configure the server with an identity of 'myself', it can never be
accessed from a computer/device other than itself. I.e., a browser opened
from another computer may initially display the 'Waiting...' screen, but
then it will attempt to redirect to 127.0.0.1:8080 -- which sends it to
that computer's port 8080, rather than the server running ODK Aggregate.
The address 10.0.2.2 is used within the emulator to refer to 'the computer
on which this emulation is running'. This has no meaning outside of the
emulator, so it, too is not a useful name/identity for the server.
What you can do, is determine what IP address your server is configured to
use (this is typically assigned by the network router or wifi hub your
server is connected to). Then configure ODK Aggregate with that IP address,
and then use that IP address instead of 127.0.0.1 or 10.0.2.2 to contact
the server, both from another computer and from your emulator.
To determine what your current IP address is, open a *cmd *window, and type
ipconfig:
C:...> ipconfig
................
Connection-specific DNS Suffix . : cs.washington.edu
IPv6 Address. . . . . . . . . . . : 2607:4000:200:15:48db:2563:7d5:b6f3
Link-local IPv6 Address . . . . . : fe80::48db:2563:7d5:b6f3%13
IPv4 Address. . . . . . . . . . . : 128.208.61.116
Subnet Mask . . . . . . . . . . . : 255.255.255.0
...........
From the above, you can see that this machine has an IP address of *
128.208.61.116
···
*
If I then run the ODK Aggregate installer and specify this address as the
internet-reachable IP address, I will be able to reach this computer from
another computer connected to this network router and from your emulator.
On Sun, Jul 28, 2013 at 7:23 AM, Palak Darji palaksdarji@gmail.com wrote:
We have found some problem in installing aggregate on localhost. Actually
what we want to do is to connect localhost Aggregate (that have an address
of http://127.0.0.1:8081/**ODKAggregatehttp://127.0.0.1:8081/ODKAggregate )
from Emulator..As you told me, android emulator can't access local
machine's 127.0.0.1 , So we give 10.0.2.2 in emulator's Collect settings..
SO now the formlist appears well, but the problem is We are not able to
download it..After we check the forms to download from the formList, then
click "get Selected" button, It gives this error : localhost/127.0.0.1:8081-
Connection refused.
Additional Info: I have installed Aggregate on Tomcat, MySQL.
Address on my laptop: http://127.0.0.1:8081/**ODKAggregatehttp://127.0.0.1:8081/ODKAggregate
Address on my emulator's collect: http://10.0.2.2:8081/**ODKAggregatehttp://10.0.2.2:8081/ODKAggregate
So plz help me to find this solution.. Thank you.
https://lh6.googleusercontent.com/-ZvfY2ddTQws/UfUo_02F3cI/AAAAAAAAAFU/WhRc5vBnNoc/s1600/2.PNG
https://lh4.googleusercontent.com/-xqCVPc87pF8/UfUpKy9H9PI/AAAAAAAAAFk/cCB2t46hvDU/s1600/3.PNG
--
Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en
You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com