Sorry I dont have a dynDNS service, I want to build it by my own this is the problem
So far I got no code cause I dont know how to do the webclient without an IP of the page... The connection to the router works..
What the problem is:
The Arduino should call the domain (lets say at nighttime all 5minutes) sub.domain.de/?ip and my script fetches the IP address and builds links like ip/?action=1.
If someone clicks on a link...
My router will forward this to the arduino and I will get get this... the server part works, I just got the problem that I cant call my own domain/script...
The description says I need a IP address of the page... I havent got it cause there are more domains behind this page --> I dont know how to call the domain with the arduino/Wifi shield
the script...
if(isset($_GET['ip'])){$db->ip($_SERVER['REMOTE_ADDR']);exit;}
function ip($ip=NULL){
if($ip!=NULL){
mysql_query("UPDATE tab SET value='$ip' WHERE name='ip'");
}else{
echo $ip = mysql_result(mysql_query("SELECT value FROM tab WHERE name='ip'"),0);
return $ip;
}
}