Total networking noob here, can someone help me?

Related to the Portal

Posts: 12163
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Dec 27, 2014 12:45 am
You need to forward port 2000 to ip address 192.168.42.72
Roberto.

Posts: 80
Joined: Thu Mar 08, 2012 5:11 pm
Location: Oakland, California
PostPosted: Sat Dec 27, 2014 1:08 pm
Ok, I think finally figured out how to properly forward port 2000 to static IP 192.168.42.72. But now when I try to go to my portal, it still doesn't work, says unreachable address, and pop up appears that says:
/status/proxy.aspx?u=http://192.168.42.72:2000&user=undefined&pass=undefined

Any ideas?
Gabe's Grad Reef
Image

Posts: 12163
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Dec 27, 2014 1:46 pm
The popup was me working on the code of the portal.
It's not there anymore.
If your port forwarding is setup correctly, you should see open when you test port 2000 here:
http://www.yougetsignal.com/tools/open-ports/
Roberto.

Posts: 80
Joined: Thu Mar 08, 2012 5:11 pm
Location: Oakland, California
PostPosted: Sat Dec 27, 2014 3:16 pm
Roberto,

The tool you linked says that port 2000 on 192.168.42.72 is closed. I'm not sure why...
But when I look into my router's firewall settings, it says:

Current Applications, Pinholes and DMZ Settings: Custom

Device Allowed Applications Application Type Protocol Port Number(s) Public IP
Static IP:192.168.42.72 ReefAngel Wifi to Portal - tcp 2000
142.254.24.170

When I use the tool you linked to test whether port 2000 is open on 142.254.24.170, it says it is open. But when I enter that into "ReefAngel Wifi Address" line on my profile page, the portal still says "address unreachable...

I don't even understand why there is a different public IP address...

I appreciate everyone's help; please keep it coming!
Gabe's Grad Reef
Image

Posts: 12163
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Dec 27, 2014 3:59 pm
You should not need to change the ip address in your profile if you have this in your code:
Code: Select all
ReefAngel.Portal("gaberosenfield");

Everytime the controller sends data to the Portal server, it will update that field automatically.
But, I'm looking at the history and I can't see any data sent to your forum id.
The test tool should be used on your public ip address.
That's the ip address that the portal can see.
The private ip address 192.168.42.72 is internal to your network and nobody can see it except you when you are connected to your wifi.
That's why you need port forwarding.... To direct traffic incoming on port 2000 to your controller inside your network.
Your router is programmed to block all incoming connections and assume they are all malicious. By using port forwarding, you are basically telling your router that any incoming connection on port 2000 is friendly and should be directed to your controller.
Roberto.

Posts: 80
Joined: Thu Mar 08, 2012 5:11 pm
Location: Oakland, California
PostPosted: Sat Dec 27, 2014 4:34 pm
Roberto,

I already have exactly the code you posted in the loop section of my ino. According to the port checking tool you linked, port 2000 on IP 142.254.24.170 is still open. According to my router, port 2000 is forwarded to 192.168.42.72, which I believe because when I enter "http://142.254.24.170:2000" into my browser, it takes me to a page that says "You have connected to Gabriel Rosenfield's ReefAngel wifi module". Yet my portal still says "unreachable address" and doesn't work... I noticed in my profile there is a place to enter a username and password for wifi authentication. Is this something I need to fill out? Also, I originally had the line
Code: Select all
ReefAngel.AddWifi();

in the initialization section of my ino. I tried removing it and it no effect either way. Does this line matter?

Thanks for your continuing help!
Gabe's Grad Reef
Image

Posts: 12163
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Dec 27, 2014 4:53 pm
I'm really confused.
I have no clue how you are getting this: "You have connected to Gabriel Rosenfield's ReefAngel wifi module"
It's not in our libraries, so it can't be coming from the controller.
Roberto.

Posts: 80
Joined: Thu Mar 08, 2012 5:11 pm
Location: Oakland, California
PostPosted: Sat Dec 27, 2014 5:36 pm
Sorry, I said it earlier in this thread. I configured the wifi module to say that when anything connects to it by typing "set c r You$have$connected$to$Gabriel$Rosenfield's$ReefAngel$wifi$module" when I was in command mode. Is that a problem?
Gabe's Grad Reef
Image

Posts: 12163
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Dec 27, 2014 5:41 pm
yes, it is.
It needs to be the preset we use or it won't work.
Roberto.

Posts: 80
Joined: Thu Mar 08, 2012 5:11 pm
Location: Oakland, California
PostPosted: Sat Dec 27, 2014 6:11 pm
I see! Now my portal is populated with my data, but it still says "unreachable address". I don't really understand that...

I am also unable to change a relay status from the portal. What do I need to do to fix that?
Gabe's Grad Reef
Image
PreviousNext

Return to Portal

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests