[ODK Community] Cannot access local Aggregate from Android device

W.r.t.
http://opendatakit.org/use/aggregate/tomcat-install/#Configure_for_Network_Access

Your DNS gateway (and all the gateways above it) do not have an entry for
"DellDT", which is causing this problem ( for one thing, DellDT is not a
well-formed DNS name for your computer. That would be of the form blah.comor
blah.blah.com, etc. (or .org, .net, .co, etc) ).

If you are using the IP address given by the local router ( 192.168.1.109
), you need to run the ODK Aggregate installer and use that IP address as
the "Internet-visible IP address or DNS name" and then use that same IP
address in the ODK Collect server URL http://192.168.1.109/ODKAggregate ).

Currently, you will notice that when you use another computer to access the
Tomcat webserver on your computer, when you try to navigate to
http://192.168.1.109/ODKAggregate , that web browser will redirect to
http://DellDT/ODKAggregate, causing an unknown hostname error because of
the above problem.

If you are using explicit IP addresses, you should define a static IP
address for your server so that the value does not change.

Mitch

··· On Tue, Feb 5, 2013 at 4:26 PM, wrote:

Greetings: I have installed (and configured users for) a local instance of
Aggregate on my Windows 7 desktop, using Tomcat 6 and PostgreSQL. I want to
download forms and upload completed surveys using WiFi. I can access
Aggregate from another computer (laptop) and I can reach the Tomcat
homepage from the Android device browser. However, I cannot get the
Android device to communicate with Aggregate, either via its browser or
from ODK Collect (v1.2.2 (1023)). The device browser gives me a 'Webpage
not found' error. Collect shows a list of forms on the server, but will
neither download a blank form nor upload a finalized form. What I have
tried and the results are further detailed at the end of the attached file,
which also includes detailed notes from the installation process. Any help
to get me past this blockage would be greatly appreciated. Thanks in
advance.

--

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

Hi Mitch,

I have already implement the cases that you described before a few months
but i have read your post and I wondering for the following
i have use a static external IP (62.28.195.32:8080) redirects to
(192.168.191.229:8080)
when im outside everythings works fine

  1. Collect using 62.28.195.32:8080 works fine but
  2. Aggregate using 62.28.195.32:8080 works fine

but when i'm on local network

  1. Collect using 192.168.1.109:8080 works fine but
  2. Aggregate using 192.168.1.109:8080 tries to redirect you
    to 62.28.195.32:8080 ... ??? and only from my server works fine ?

It is not such a big problem because the main issue is for collectors to
works in a local network, but i have this question that i'm trying to
figure out.

Thanks in advance
Panos

··· On Wednesday, February 6, 2013 3:07:24 AM UTC+2, Mitch Sundt wrote: > > W.r.t. > http://opendatakit.org/use/aggregate/tomcat-install/#Configure_for_Network_Access > > Your DNS gateway (and all the gateways above it) do not have an entry for > "DellDT", which is causing this problem ( for one thing, DellDT is not a > well-formed DNS name for your computer. That would be of the form blah.comor > blah.blah.com, etc. (or .org, .net, .co, etc) ). > > If you are using the IP address given by the local router ( 192.168.1.109 > ), you need to run the ODK Aggregate installer and use that IP address as > the "Internet-visible IP address or DNS name" and then use that same IP > address in the ODK Collect server URL http://192.168.1.109/ODKAggregate ). > > Currently, you will notice that when you use another computer to access > the Tomcat webserver on your computer, when you try to navigate to > http://192.168.1.109/ODKAggregate , that web browser will redirect to > http://DellDT/ODKAggregate, causing an unknown hostname error because of > the above problem. > > If you are using explicit IP addresses, you should define a static IP > address for your server so that the value does not change. > > Mitch > > On Tue, Feb 5, 2013 at 4:26 PM, <hayden...@gmail.com > wrote: > >> Greetings: I have installed (and configured users for) a local instance >> of Aggregate on my Windows 7 desktop, using Tomcat 6 and PostgreSQL. I want >> to download forms and upload completed surveys using WiFi. I can access >> Aggregate from another computer (laptop) and I can reach the Tomcat >> homepage from the Android device browser. However, I cannot get the >> Android device to communicate with Aggregate, either via its browser or >> from ODK Collect (v1.2.2 (1023)). The device browser gives me a 'Webpage >> not found' error. Collect shows a list of forms on the server, but will >> neither download a blank form nor upload a finalized form. What I have >> tried and the results are further detailed at the end of the attached file, >> which also includes detailed notes from the installation process. Any help >> to get me past this blockage would be greatly appreciated. Thanks in >> advance. >> >> -- >> -- >> Post: opend...@googlegroups.com >> Unsubscribe: opendatakit...@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...@googlegroups.com . >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > -- > Mitch Sundt > Software Engineer > University of Washington > mitche...@gmail.com

If the server is reachable via the global http://62.28.195.32:8080/ then
the redirection when you are on your local network to that address should
also be fine -- it should resolve back to the address as it is known
locally (the local LAN address 192.168... ). If the global address does
not work when you are on the local network, then there is something not
quite right with the network (router) setup. Unfortunately, I don't know
enough about the variety of network setups to suggest how this could be
broken.

The reason for the redirection is that if you were to set up an SSL
certificate for your server, the certificate is very particular about the
name of the server -- they generally do not support aliases. To deal with
having a global address (your DNS hostname if you have one) and a local
alias (192.168...), the server ensures that all traffic is redirected to
use the hostname specified when you ran the ODK Aggregate installer. In
this case, you didn't specify a DNS hostname, but instead used your raw
global IP address (62.68...), and so it is redirecting to that address.

Mitch

··· On Thu, Apr 24, 2014 at 7:59 AM, Panos Papadatos wrote:

Hi Mitch,

I have already implement the cases that you described before a few months
but i have read your post and I wondering for the following
i have use a static external IP (62.28.195.32:8080) redirects to (
192.168.191.229:8080)
when im outside everythings works fine

  1. Collect using 62.28.195.32:8080 works fine but
  2. Aggregate using 62.28.195.32:8080 works fine

but when i'm on local network

  1. Collect using 192.168.1.109:8080 works fine but
  2. Aggregate using 192.168.1.109:8080 tries to redirect you to
    62.28.195.32:8080 ... ??? and only from my server works fine ?

It is not such a big problem because the main issue is for collectors to
works in a local network, but i have this question that i'm trying to
figure out.

Thanks in advance
Panos

On Wednesday, February 6, 2013 3:07:24 AM UTC+2, Mitch Sundt wrote:

W.r.t. http://opendatakit.org/use/aggregate/tomcat-install/#
Configure_for_Network_Access

Your DNS gateway (and all the gateways above it) do not have an entry for
"DellDT", which is causing this problem ( for one thing, DellDT is not a
well-formed DNS name for your computer. That would be of the form
blah.com or blah.blah.com, etc. (or .org, .net, .co, etc) ).

If you are using the IP address given by the local router ( 192.168.1.109
), you need to run the ODK Aggregate installer and use that IP address as
the "Internet-visible IP address or DNS name" and then use that same IP
address in the ODK Collect server URL http://192.168.1.109/ODKAggregate).

Currently, you will notice that when you use another computer to access
the Tomcat webserver on your computer, when you try to navigate to
http://192.168.1.109/ODKAggregate , that web browser will redirect to
http://DellDT/ODKAggregate, causing an unknown hostname error because of
the above problem.

If you are using explicit IP addresses, you should define a static IP
address for your server so that the value does not change.

Mitch

On Tue, Feb 5, 2013 at 4:26 PM, hayden...@gmail.com wrote:

Greetings: I have installed (and configured users for) a local instance
of Aggregate on my Windows 7 desktop, using Tomcat 6 and PostgreSQL. I want
to download forms and upload completed surveys using WiFi. I can access
Aggregate from another computer (laptop) and I can reach the Tomcat
homepage from the Android device browser. However, I cannot get the
Android device to communicate with Aggregate, either via its browser or
from ODK Collect (v1.2.2 (1023)). The device browser gives me a 'Webpage
not found' error. Collect shows a list of forms on the server, but will
neither download a blank form nor upload a finalized form. What I have
tried and the results are further detailed at the end of the attached file,
which also includes detailed notes from the installation process. Any help
to get me past this blockage would be greatly appreciated. Thanks in
advance.

--

Post: opend...@googlegroups.com
Unsubscribe: opendatakit...@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...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

--
Mitch Sundt
Software Engineer
University of Washington
mitche...@gmail.com

--

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/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com