BlueSpray Community
Techical Discussions => Help => Topic started by: bluespray_admin on July 29, 2013, 02:15:01 pm
-
Port forwarding from your router allows you to access your BlueSpray controller from any where on the internet.
Port forwarding is configured differently on different routers, but the idea is the same. Your router has a public IP address. BlueSpray controller (assumed to be on the network) has a private IP address. The router blocks all direct requests to all of the devices in its network by default, but you can configure it to bypass it.
The idea is to open a port on the router's public interface that forwards all requests to BlueSpray controller. BlueSpray has a web server that listens to 4 ports: 80, 8000 (http) and 443, 8443 (https). You don't want to use these ports on your router because you might need them to access your router. You should use different port, for example, router:8080 -> controller:80 or router:8443 -> controller:443. If your controller can only do port translation, you can use router:8000 to controller:8000 or router:8443 to controller:8443. Note that you can also change these 2 ports (8000 and 8443) in Settings->System.
Port forwarding will fail at times if your controller's IP address is dynamic. Since it it dynamic, it can change from time to time. When it changes, the router will forward to the wrong IP address. What you will need to do is reserve a fixed or static IP address for your controller. Different routers has different ways to reserve IP address. Please consult your router's User Manual for instructions on how to do it.
If you have any info about your particular router, please share it here.
-
According to openwrt wiki:
http://wiki.openwrt.org/doc/howto/port.forwarding
Port forwarding can be done by editing the /etc/config/firewall file:
config redirect
option name 'bluespray'
option src 'wan'
option proto 'tcp'
option src_dport '8080'
option target 'DNAT'
option dest 'lan'
option dest_ip '192.168.2.7'
option dest_port '80'
-
Here is a very good document on how to configure port forwarding on Netgear routers:
http://kb.netgear.com/app/answers/detail/a_id/20917/~/how-is-port-forwarding-configured%3F
-
Instructions on port forwarding for Belkin routers:
http://en-us-support.belkin.com/app/answers/page/a_id/60
-
From Linksys support site:
http://kb.linksys.com/Linksys/ukp.aspx?pid=80&vw=1&articleid=21470
There are also instruction videos on Youtube as well.
-
If you have a Verizon FIOS router, you'll need firmware 1.2.
1. In Settings->System, set HTTP and HTTPS ports. Example: 8000 and 8443, but you can choose any other port not 80 and 443.
2. In your router, your port forwarding set up should look something like this:
BlueSpray IP address ->
Destination Ports 8xxx
TCP Any -> 8xxx All Broadband Devices Active
Where 8xxx can be either 8000 or 8443 or other ports that you've set in (1) above.
For example. if your BlueSpray controller IP address is 192.168.1.100, then your rule should look something like this:
192.168.1.100:8000 HTTP All Broadband Devices Active
TCP Any ->8000
Or if you prefer https:
192.168.1.100:8443 HTTPS All Broadband Devices Active
TCP Any ->8443
-
How do you set up the port forwarding for Bluespray on a Uverse 2 wire modem/router?
-
There is a good instruction discussion from AT&T itself here:
http://www.att.com/esupport/article.jsp?sid=KB413180&cv=812#fbid=8aVxa3-puXN
You'd input the IP address of BlueSpray controller as the host computer, use BlueSpray as application name,
from port is 8000 (up to you), end port same. Map to host is 80, protocol is TCP.
-
Don't forget to set or reserve a static IP address for the controller.
On most routers, you can view attached devices, then select the device with the controller's IP address, and set the static IP address.
-
There is a very good instruction on how to do port forwarding for airport here:
http://www.macworld.com/article/2081139/how-to-set-up-port-forwarding.html
Remember, the port you'd want to use is 8000. You'd also want to reserve an IP
address for your controller as mentioned on the bottom of the page.