I'm trying to estabilish a communication from Arduino (R3)dressing a Wifi Shield (R3) to server Apache, on my LAN.
I have:
1 - Server apache, PHPmyAdmin, MySQL, installed by a Bitnami WAMP Stack.
2 - Lan created by a router wifi: Vodafone Station HG553
3 - Arduino (R3) & WifiShield (R3) (connected by USB to PC).
I tried at first the example code supplied by Arduino.cc: ConnectWithWPA
By this code I succeed to connect Arduino to Vodafone Station
I correctly read the WifiShield MAC address within connected clients (on the router page: hhtp://192.168.0.1)
Then I tried to connect Wifishield to server by another sample code by Arduino.cc: WiFiWebClient
In this case, I didn't succeed to connect arduino to Google (nor using ip adress of google). I think this ip is incorrect, but I don't know any way to verify a right connection from Arduino to a Local or remote server.
I need to connect Arduino to my local server (pc with a Wamp server), by LAN created by the Vodafone Station, but I can't connect Arduino to any server, so I need to resolve this at first.
Ok.
I correctly connected my Arduino to Google page.
Now I would try to connect to my local server (Bitnami WAMP Stack).
I think there are two ways:
sending a query (as in WiFiWebClient) through the Web and reaching my local server by a Dinamic DNS service (as No-IP).
sending the query on local network (LAN), reaching the local server directly inside the LAN offered by the Vodafone Station HG553.
I tried the 1° method by Dinamic DNS offered by NO-IP (free) service, but I can't connect to server.
(I changed the Google address with the dinamic IP given by No-Ip redirecting. but it doesn't work)
I have a vague idea about 2° method: i don't know esactly how Arduino can be fowarded by the router on my server (local pc).
The local Pc (server wamp) as ip: 192.168.1.5 I tried a scratch similar to the WiFiWebClient, changing the google address with the Wamp server local IP address..
..but I failed!
In both cases I'm sure (by realtime monitor) that I failed to connect to server.
have you any suggestion?
(I don't explain in detail because I listed two method, so you can suggest me which you prefer)