In the last months i´ve received lots entries by blog readers which reported troubles with port forwarding.
In the following blog i will describe and show my setup and how portforwarding is done.
Router WRT54GL with Tomato 1.25 firmware
Wansview NC541W with firmware 184.108.40.206
First of all, make sure your webcam is connected wired or wireless with your router.
I´ve logged into the router with web interface where you can find very useful information which we will need later on.
In section WAN you can find the external IP adress (i´ve anonymized my ip adress), which you will need later on. If you don´t see it in your router firmware, just go to http://whatismyipaddress.com/ and find out yourself.
In section LAN you can see your internal network range, in my case 192.168.0.100 to 149 which DHCP gives your connected devices.
In section wireless you see your WLAN settings. I´m using WPA2 encrytion with TKIP.
Router webinterface – DHCP setup
If you use DHCP (router gives your devices automatically IP adresses) then you should make sure you either use static DHCP or give the device a manual IP adress. If we do portforwarding, having a fixed IP adress is very important! Next i´ll explain the two ways to achieve a fixed IP adress on the webcam.
static DHCP is done in the router interface, which binds an IP adress to a MAC adress. In the router´s device list you can see that i´ve connected the webcam with wireless lan. The webcam uses the internal adress 192.168.1.111.
Now we have to tell the router that 192.168.1.111 should always be give to the webcams MAC adress. (click on static or similar on your router)
Webcam webinterface – fixed IP setup
The second way to achieve a fixed IP adress is in the webcam interface itself. Just give in network the ip adress you want. By default the webcams port is 80, you can keep it.
Try to access your webcam in the browser, in this case http://192.168.1.111:80. You can also drop :80 because http uses port 80 by default! By now you only can access the webcam inside your lan!
Router webinterface – setup port forwarding
To access the webcam from the internet you need to setup portforwarding in the router. As you can see i forward the port 80 (int port) from 192.168.1.111 (int address) to external port 8080 (ext ports). The transport protcol is UDP and TCP (both).
After using the save button you can try with a test tool like http://www.yougetsignal.com/tools/open-ports/ if you´ve done everything correctly. In the following screenshot that i´ve done the portforwarding correctly, a connection to port 8080 is possible!
Try the connection
Try to access your webcam from internet, maybe not from your own internet connection😉, from work or a friends house! http://external-ip:8080 and login with our user and password.
Congratulations, you did it!