Got problem with wampserver windows / arduino webclient

Hi
I am quite new in arduino, I am trying to open a webclient session on a Uno + ethernet shield, based on the demo code delivered with arduino 1.6.4, in which I have just changed the google url to my windows wampserver one and gave a fixed IP to my arduino card.
On server side there is a hello world "hello.php" which is well working from localhost, both server and arduino are on isolated local router without external internet access.
The sketch well connect my web server, but client.available() is null thus I do not receive the expected content "hello world".
Of course I have installed the ping library, my web server is well pinged.
I also tested arduino as web server and it works fine so really I don't understand what happen. Any idea will be welcome. 10x all :slight_smile:

The serial window show the following at run:

starting...
connecting...
connected

disconnecting.

WebClientTestStandard.ino (2.43 KB)

Look at #7 below on how to post code so more people will look at it:

http://forum.arduino.cc/index.php/topic,148850.0.html

Two things wrong that I see. One is causing the dns resolution to fail, and the other isn't catching the fail.

// this is wrong. It won't resolve. Use IPAddress type
char server[] = "10,0,0,137";
// like this
IPAddress server(10,0,0,137);

// and this is wrong. Must return 1 for success, and anything else is fail
  if (client.connect(server, 80)) {
// use this instead
  if (client.connect(server, 80) == 1) {