user888: I just bought a WiFi shield and I cannot connect to my wireless network (WPA2). 

I used the sketch from the Arduino site for connecting to WPA network and put my SSID and password on but it doesn't connect (I know the credentials are correct as I used my phone to connect with these WiFi credentials). 
When I read the serial monitor it just keeps trying to connect. The WiFi-shield board error light is red
I checked my network settings and my block level is at is lowest (NAT only).

Why can't I connect?

user754: In the loop:
// attempt to connect to Wifi network:
  while ( status != WL_CONNECTED) { 
    Serial.print("Attempting to connect to WPA SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network:    
    status = WiFi.begin(ssid, pass);

    // wait 10 seconds for connection:
    delay(10000);
  }

Can you add Serial.print(status); before the delay so you can see if any of these arise:

WL_IDLE_STATUS = 0
WL_NO_SSID_AVAIL 
WL_CONNECT_FAILED 
WL_CONNECTION_LOST
WL_DISCONNECTED

They are defined in wl_definitions.h

888: <p>I just bought a WiFi shield and I cannot connect to my wireless network (WPA2). </p>

<ul>
<li>I used the <a href="http://arduino.cc/en/Tutorial/ConnectWithWPA" rel="nofollow">sketch from the Arduino site</a> for connecting to WPA network and put my SSID and password on but it doesn't connect (I know the credentials are correct as I used my phone to connect with these WiFi credentials). </li>
<li>When I read the serial monitor it just keeps trying to connect. The WiFi-shield board error light is red</li>
<li>I checked my network settings and my block level is at is lowest (NAT only).</li>
</ul>

<p><strong>Why can't I connect?</strong></p>
 754: <p>In the loop:</p>

<pre><code>// attempt to connect to Wifi network:
  while ( status != WL_CONNECTED) { 
    Serial.print("Attempting to connect to WPA SSID: ");
    Serial.println(ssid);
    // Connect to WPA/WPA2 network:    
    status = WiFi.begin(ssid, pass);

    // wait 10 seconds for connection:
    delay(10000);
  }
</code></pre>

<p>Can you add <code>Serial.print(status);</code> before the delay so you can see if any of these arise:</p>

<ul>
<li>WL_IDLE_STATUS = 0</li>
<li>WL_NO_SSID_AVAIL </li>
<li>WL_CONNECT_FAILED </li>
<li>WL_CONNECTION_LOST</li>
<li>WL_DISCONNECTED</li>
</ul>

<p>They are defined in <code>wl_definitions.h</code></p>
