Total networking noob here, can someone help me?

Related to the Portal
Post Reply
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Total networking noob here, can someone help me?

Post by rimai »

You need to forward port 2000 to ip address 192.168.42.72
Roberto.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Total networking noob here, can someone help me?

Post by gaberosenfield »

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?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Total networking noob here, can someone help me?

Post by rimai »

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.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Total networking noob here, can someone help me?

Post by gaberosenfield »

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!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Total networking noob here, can someone help me?

Post by rimai »

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.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Total networking noob here, can someone help me?

Post by gaberosenfield »

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!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Total networking noob here, can someone help me?

Post by rimai »

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.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Total networking noob here, can someone help me?

Post by gaberosenfield »

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?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Total networking noob here, can someone help me?

Post by rimai »

yes, it is.
It needs to be the preset we use or it won't work.
Roberto.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Total networking noob here, can someone help me?

Post by gaberosenfield »

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?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Total networking noob here, can someone help me?

Post by rimai »

There must be something still misconfigured in your wifi attachment.
I also can't see port open when checking your public ip address.
Roberto.
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Total networking noob here, can someone help me?

Post by gaberosenfield »

That's strange; when I check port 2000 at IP 142.254.24.170 I get "Port 2000 is open on 142.254.24.170.".

I guess I'll try to reconfigure the wifi attachment again...
gaberosenfield
Posts: 89
Joined: Thu Mar 08, 2012 5:11 pm
Location: Redwood City, California

Re: Total networking noob here, can someone help me?

Post by gaberosenfield »

Well by reconfiguring the wifi module following exactly what the guide first suggested, I was able to make it work like a charm! Thanks so much for all your help!

For the record, much of my confusion seems to have come from some unclear instructions in the wifi attachment manual. For example, it was not at all clear to me that if I changed the string that is sent to the remote TCP client when the TCP port is opened from the default to anything else, the portal wouldn't accept my wifi module's uploads. It also says that the flush size should be set to the largest possible value and that that value is 1420. So I set it to 1420. In the end, I had to change it back to 1024, which is also suggested in the manual, in order to get everything to work. Perhaps the manual should be made more clear. I would be willing to make the changes, but I'm not really sure how to make those changes to a PDF without a program to which I do not have access.

Thanks again everyone, especially Roberto!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Total networking noob here, can someone help me?

Post by rimai »

I think 1420 size should work. The modules are shipped wit 1420.
1024 works too.
Roberto.
Post Reply