Hi all,
I'm having trouble connecting to my WifiShield web server using the Arduino Examples "WifiWebServer" and "SimpleWebServerWifi".
I have the Mega 2560 with WiFi Shield.
I can successfully connect to my router (NetGear N600, with security and remote management disabled) -- serial monitor indicates good connection and LED on WiFi Shield indicates a good link.
I can ping the Shield with my Windows 7 computer just fine with mininal latency.
However, when I attempt to open the IP address in the browser, the browser cannot connect to the web server. I have tried in both Chrome and Internet Explorer with no luck.
I know my router isn't the problem, because I setup an IIS on another laptop on my wireless network and I can connect to its web server (port 80) just fine.
The serial output from the SimpleWebServerWifi example is:
Attempting to connect to Network named: EricHome
SSID: EricHome
IP Address: 192.168.1.2
signal strength (RSSI):-30 dBm
To see this page in action, open a browser to http://192.168.1.2
However, attempting to connect to that address fails. Again, I can ping the address just fine. I don't get a 404 error -- just "can't connect".
Any tips? The code is unmodified from the SimpleWebServerWifi example (except changing the SSID and password appropriately).
i have the same problem , i have a UNO with the Arduino WIFI shield. everything is connected but cannot open in the browser ... i was reading that sometimes the port maybe a problem. So we can either use 80,8080 etc.. nothing worked for me though ...
I got mine working. After spending two night troubleshooting, I got another WiFi Shield (there's a MicroCenter just down the road!) to start fresh.
Before I plugged it in, I went and got the latest GitHub libraries of Wifi and SPI and overwrote them in the Arduino IDE Library directory. Cranked up the WifiWebServer.ino sketch, changed the SSID, password and port and it worked the first time!
Attempting to connect to SSID: myNetwork
SSID: myNetwork
IP Address: 192.168.1.x
signal strength (RSSI):-26 dBm
new client
GET / HTTP/1.1
Host: 192.168.1.x:8080
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
Accept-Encoding: gzip,deflate
Accept-Language: en-US,en;q=0.8
client disonnected
Using:
Arduino R3
Arduino Wifi Shield R3
Arduino IDE v1.0.5
I didn't have to update the firmware on anything either. Let me know if you need any other info and I'll gladly get it for you.
Eric,
So basically the solution is to get a new WiFi Shield??
Did the old one work after the libraries were updated?
Could you give us the link where the good libraries are?
I spoke too soon, yes I initially got it to work with the new wifi shield and I didn't try the old one with the new libraries. Here's a link to the libraries https://github.com/arduino/Arduino/tree/master/libraries. Make sure you update the SPI library along with the WIFI library.
The problem I have now is that it's works ok for the first two/three requests and then it just hangs afterwards and I have to reset it. I need something much more reliable and so I'm working on a Raspberry Pi.