android app

Drs1210

android app

Post by Drs1210 »

Does anyone know why I get a timeout error when I try to connect through the controller, but when I change it to portal it works? Also why is the time 5 hours later when I go through the portal vs the controlleru
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: android app

Post by binder »

Drs1210 wrote:Does anyone know why I get a timeout error when I try to connect through the controller, but when I change it to portal it works? Also why is the time 5 hours later when I go through the portal vs the controlleru
using the portal means the android app connects to the portal and not your controller. the portal stores the date in gmt (offset of zero i believe). my app just grabs the values straight from the portal and does not modify anything.

now, there can be several things causing the timeout:
port not being forwarded
router not handling loopback support
controller having dynamic ip address that has changed since initial setup causing forwarding to not work
your public ip address could have changed and you are using the old ip

so there needs to be further investigation of the timeout for the app.

Sent from my Nexus 7
Drs1210

Re: android app

Post by Drs1210 »

Well I checked to see if port 2000 was open on my public ip address and it still is. I also checked to see if my pubilc address had changed since I set it up, and it too is fine. I checked my RA wifi address, and the was still the same too. It used to work when I wasn't on my network, and when it was set to controller, not portal. What else could it be?
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: android app

Post by binder »

are you able to browse to the web page using a web browser?
Drs1210

Re: android app

Post by Drs1210 »

Yes I can access the web portal just fine.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: android app

Post by binder »

Drs1210 wrote:Yes I can access the web portal just fine.
When you say web portal, I think of the portal on the forum http://portal.reefangel.com
I am actually talking about the web page that the controller displays, http://YOURIP:2000/wifi
YOURIP is the ip of your controller or the ip of your home network that you put into the android app.
Can you access that page?


Sent from my iPad using Tapatalk HD
Drs1210

Re: android app

Post by Drs1210 »

No, I was unable to connect with that address.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: android app

Post by lnevo »

Which IP are you using...so far is sounds like your port forwarding is not working.

The portal getting data is your wifi making an outgoing connection and therefore requires no port forwarding.

Your phone or the portal trying to do updates is an incoming connection and requires the port forwarding working correctly.
Drs1210

Re: android app

Post by Drs1210 »

I'm using the ip address of the RA wifi.
chapboogie
Posts: 95
Joined: Mon Apr 29, 2013 10:51 pm

Re: android app

Post by chapboogie »

Having similar issue. My isp came and worked on my connection and reset everything. I did the port forwarding but can't seem to get it to work. Can be seen by the web portal but not the controller. Do I have to set up the wifi adapter all over? I had all of it running before.

Sent from my SCH-I535 using Tapatalk 4 Beta
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: android app

Post by binder »

chapboogie wrote:Having similar issue. My isp came and worked on my connection and reset everything. I did the port forwarding but can't seem to get it to work. Can be seen by the web portal but not the controller. Do I have to set up the wifi adapter all over? I had all of it running before.

Sent from my SCH-I535 using Tapatalk 4 Beta
I think the wifi setup utility uses UPNP to setup the port forwarding. This type of forwarding can get reset if the settings on the router are changed. The upside though is that it's super easy to configure and you don't have to change anything on your router.
So you can run the wifi adapter setup over again or try to manually setup port forwarding on your router.
Drs1210

Re: android app

Post by Drs1210 »

So I should use the IP address of the RA wifi in the settings of my phone? I should also be port forwarding to that wifi module too?
Drs1210

Re: android app

Post by Drs1210 »

binder wrote:
Drs1210 wrote:Yes I can access the web portal just fine.
When you say web portal, I think of the portal on the forum http://portal.reefangel.com
I am actually talking about the web page that the controller displays, http://YOURIP:2000/wifi
YOURIP is the ip of your controller or the ip of your home network that you put into the android app.
Can you access that page?


Sent from my iPad using Tapatalk HD
I was able to open my web page for my controller with http://YOURIP:2000/wifi. I used the IP address of my controller to do so.
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: android app

Post by binder »

Drs1210 wrote: I was able to open my web page for my controller with http://YOURIP:2000/wifi. I used the IP address of my controller to do so.
If you can get this to work, then your next step is to try your public IP instead of your controller IP address. If that does not work, then you do not have port forwarding setup properly on your router.
Drs1210

Re: android app

Post by Drs1210 »

I tried my public IP address and I couldn't access it. I guess I'm a little confused over all of this. I thought if you went to canyouseeme.org and typed in port 2000 and it came back open on your external IP address, that you were good to go. Is this not the case?
Drs1210

Re: android app

Post by Drs1210 »

Also, would not having NAT loopback on my router cause it not to see anything when I try to access my controller on my public IP address when I'm in my network?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: android app

Post by rimai »

Simple test:
1. Open your browser in your computer and go to browse to private ip address
http://private_ip_address:2000
Your private ip address should be something like 192.168.xxx.xxx
What do you get?
2. Now, browse to your public ip address
http://public_ip_address:2000
Your public ip address can be found here: http://www.whatismyip.com/
What do you get?
Roberto.
Drs1210

Re: android app

Post by Drs1210 »

Nothing on both...
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: android app

Post by lnevo »

You already said #1 was working...

It sounds like port forwarding is not pointing to your internal address

You need to log into your router and do it manually
Drs1210

Re: android app

Post by Drs1210 »

Well this where I'm getting confused. When I was able to get #1 I used my RA wifi IP address. When Roberto asked be to check it agian, I used my private IP. Obviously I'm missing something here.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: android app

Post by lnevo »

The RA wifi ip is what Roberto meant...I'm not sure what you mean by your private ip? Your desktop ip?
Drs1210

Re: android app

Post by Drs1210 »

My router shows Private LAN and Public LAN, so I thought that was what he was talking about. I already tried it with my RA wifi address, thats why I assumed he was talking about the Private LAN when he asked me agian. Anyways, yeah I can get the page where it says reef angel, and show the temps and pH.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: android app

Post by rimai »

Ok, so if you can get the response from private ip but not from public ip, I can say that it is definitely your lack of NAT loopback that is causing you issues.
Roberto.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: android app

Post by lnevo »

Check the port forwarding config in yor router. It should be forwarding port 2000 to the RA wifi ip.
Drs1210

Re: android app

Post by Drs1210 »

It is. I had to add a new custom service when I set up the wifi. I used the IP address the wifi utility gave me and port forward that to port 2000.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: android app

Post by lnevo »

and when you browse to http://publiclanip:2000/wifi you get nothing? You must be disconnected from your network (i.e. use your phone to check...)

If this is still not the case then something is wrong with your port forwarding config (maybe paste us a screenshot) or your ISP may be blocking port 2000... I would call them and ask them for support. Port forwarding is a common requirement and this is the part alot of other brand controller users get caught on as well.
Drs1210

Re: android app

Post by Drs1210 »

Yeah I get nothing when I try with me public IP address. I found this under my connection configuration tab. It has a drop down menu with tree options: Static Nat, IP-pass through, and dropped. Any ideas what this is for?
Drs1210

Re: android app

Post by Drs1210 »

It says this right above the drop down menu:


To protect your local devices, the firewall normally drops inbound unsolicited traffic.
That traffic can instead be transferred to a LAN host with the option below. To switch between Static NAT and IP Pass-through, first select and save Dropped. Then select and save the new option.

Current settings for unsolicited traffic is Dropped.
User avatar
lnevo
Posts: 5430
Joined: Fri Jul 20, 2012 9:42 am

Re: android app

Post by lnevo »

Try either. I would do static nat first
Drs1210

Re: android app

Post by Drs1210 »

So is there anything I can do if my router doesn't support NAT loopback? I know Curt said I have to set up an away and home profile, which I did, but it still didn't help.
Post Reply