In your router's config you'll forward its port 88 to internal address 192.168.0.12 at port 80
You mean keeping the ethernetshield @ port 80 and still port forwarding at my routers end with port 88 will work? or you are saying that I define in my router port forwarding settings that ports 80 to 88 included in the IP 192.168.0.12
From the internet your Arduino will be accessible from :88
for example:
http://212.56.89.41:88 (this is a totally arbitrary address I totally made up, just to indicate a valid internet IP address)
Your router will do a port forwarding of that port to the internal address 192.168.0.12 in the port 80, and that will be invisible to the outside clients.
Now, if your are trying to access your arduino from your LAN, it is still 192.168.0.12:80
How you do that depends on the specific model of your router/gateway. It might be called something like port forwarding.
I actually mean that IF I do portforwarding on the internal IP 192.168.0.104 on port 80 in my router then how can I access my ethernet arduino at port 88 it would be accessible on port 80 only.
NI$HANT:
I actually mean that IF I do portforwarding on the internal IP 192.168.0.104 on port 80 in my router then how can I access my ethernet arduino at port 88 it would be accessible on port 80 only.
The router does that for you, automagically.
The Arduino is still accessible through port 80 only. However, every request that comes from the internet to port 88 is sent to your LAN in the port 80, so the Arduino will be able to respond. When the Arduino responds to the router, the router will send that response back to the internet client.
What you need to know is (the uppercase words are keyword you should look for in your router's config page):
ANY request from ANY source port that is sent to your ROUTER with DESTINATION port 88 will be forwarded to the INTERNAL client 192.168.0.12 in the PORT 80.
Port forwarding on the internal ethernetshield IP address set to port 80 ,
the arduino ethernet shield set to port 80,
the ethernet shield is being noticed by the router so thats not a problem,
also Im able to access the contents of the webserver using the internal IP address of the ethernetshield but not using the external IP address that is WAN on port 88.
Have you tried allowing that port through the firewall? My router (not D-Link) requires both the destination NAT (port forward) and the port allowed on the firewall.
I use either port 8080 or 8088 for this kind of stuff.
Is this router the equivalent to a "cable modem" supplied by your ISP? Does it connect directly to the DSL phone line? If so, then this may not be the router to be adjusting. You may need to connect an internal router to this device.
I have a DSL modem which was provided to me by the ISP ,now the phone line goes into that DSL and an ethernet cable comes out of it and then that ethernet cable is inserted into my DLINK- DIR524 WiFi router which also has some ethernet port at the back so I inserted another ethernet cable there and plugged it into my ethernet shield that's it.
I got my WAN IP using this URL >> http://checkip.dyndns.org/
So you mean these ports would work in place of port 80 ?
Yes. Some ISPs block port 80 requests to residential ip addresses. Mine does. To get around that block, one of those ips will normally work. Insure you allow that port through your firewall.
..and you port forwarded that port to your private localnet ip? If it still doesn't work, it may be your DSL router doing the block.
But that what could be possible issue here? Can you outline which elements to check, I tried disabling the Firewall and restarting the router to no avail!
Should I provide you with the screenshot of my routers option/functions it supports so you may try to underline some options?
if you are trying to reach your arduino from outside your dlink router, you will need to use your wan ip address (or a service like no-ip.com), and have the dlink port forward the outside request to the lan ip address of your arduino.
I know this already and im doing it/trying it but IM not able to access using the WAN IP, however at the same time the internal IP communication works smooth
My code is the very same no changes WEBSERVER ethernet example that comes with the Arduino 1.0 IDE ONLY the IP address that is 192.168.0.104 + the MAC address is changed and the Server port rest is the same.