Using a UNO & Ethernet board I have the WebServer example working well using the Internal IP address of 192.168.1.177 through to a browser. My setup is on a port of a NetComm NB6Plus4W on a ADSL line.
My end aim is to access the Arduino server from a remote client.
My ISP provides me only with a dynamic IP address so I'm trying to use NOIP.COM to monitor my occasionally (dynamically) changing public IP to a static IP.
This free Dynamic DNS service takes your Dynamic IP address and makes it act as though it is static by pointing a static hostname to it and checking every 5 minutes for changes to your IP address. If your IP address changes, the Dynamic Update Client updates your hostname with the current IP address. Which means you can run a arduino server remotely. Specifically this should allow me access to my router using a web address like http://mysubdomain.ddns.net.and then through a connected port to the Arduino Server.
When I enter http://mysubdomain.ddns.net it does connect me through to the Netcomm login page.
Next step is to then try Port Forwarding from the WWW using typically a public IP of say 58.178.xxx.yyy but it won't work.
There is an excellent tutorial here on how to do this How to Port Forward ANY port. NetComm NB6 router. - YouTube this example follows the directions in the NetComm manual.
As I said before my local browser can connect to WebServer using the Internal IP address of 192.168.1.177.
Also I can also use the NOIP server to the server using http://mysubdomain.ddns.net & that connects to the NwetComm Router login page so that part works.
Problem is Port Forwarding through the router.
When I run PortCheckTool.com & ask it to test port 177 it reports that it times out waiting to see the port.
Has anyone been able to establish Portforwarding through a NetComm router to an arduino?
When I run PortCheckTool.com & ask it to test port 177 it reports that it times out waiting to see the port.
It isn't port 177. Check port 80. That is the "http" port.
Look in your manual on page 68 under "Virtual Server- Port Forwarding".
http://media.netcomm.com.au/public/assets/pdf_file/0015/40218/NB6Plus4W_REV2_UG.pdf
When I run PortCheckTool.com and specify port 80 I get following:
Success! I can see your service on 58.179.222.125 on port (80) Your ISP/Router/Firewall is not blocking port 80.
But I'm trying to get through to a port I specified e.g. 104 as specified in following example:
// next identify hardware
byte mac[] = { 0x48, 0xC2, 0xA1, 0xF3, 0x8D, 0xB7 };
byte ip[] = { 192,168,1, 104 }; // this is the address you type into browser & tell it to start the server on port 80
// keep in mind 192.168.1.1 will be the router - Start the server on port 80
// in format 192.168.1.104:80 on browser address line as port 80 is for http web requests
As in the comments to the code extract above I can use format 192.168.1.104:80 on browser address line and it does get through to the arduino on my local network but this is not a public IP address that I could use from anywhere in the world.
Appreciate any further help / comments
But I'm trying to get through to a port I specified e.g. 104 as specified in following example:
// next identify hardware
byte mac[] = { 0x48, 0xC2, 0xA1, 0xF3, 0x8D, 0xB7 };
byte ip[] = { 192,168,1, 104 }; // this is the address you type into browser & tell it to start the server on port 80
// keep in mind 192.168.1.1 will be the router - Start the server on port 80
// in format 192.168.1.104:80 on browser address line as port 80 is for http web requests
The "104" is not the port. It is the last octet of the IP address. The port is still 80 as I highlighted above.
If you change the IP, you must change the port forward address in the router to that IP.