client.connect(server, 80) always return Zero

Hello all,

I am new to arduino . I want to send a sensor data to mysql_local server [i am using XAMPP] with IP - 192.168.1.10 [Laptop IP ]. when i try to connect to server , its always printing connection failed .

then i check return value of the client.connect ();, its ways printing Zero .

I tried Ethernet websever code in examples section , its working fine .

I can able to ping to my Arduino - Ethernet shield from my laptop.

Please help me out .

Please find my Arduino code and php-mysqul code in attachments.

Note:-

Arduino board : Arduino Mega 2560

Ethernet Shield :- W5100

Arduino code :- WebServer_code.ino

Index.php and process.php is for login page .

write_data.php is for mysql data entry .

WebServer_Code.ino (4.79 KB)

Hello all,

I am new to arduino . I want to send a sensor data to mysql_local server [i am using XAMPP] with IP - 192.168.1.10 [Laptop IP ]. when i try to connect to server , its always printing connection failed .

then i check return value of the client.connect ();, its ways printing Zero .

I tried Ethernet websever code in examples section , its working fine .

I can able to ping to my Arduino - Ethernet shield from my laptop.

Please help me out .

Please find my Arduino code and php-mysqul code in attachments.

Note:-

Arduino board : Arduino Mega 2560 ยูฟ่าเบท

Ethernet Shield :- W5100

Arduino code :- WebServer_code.ino

Index.php and process.php is for login page .

write_data.php is for mysql data entry .

Different user posting exact duplicate of http://forum.arduino.cc/index.php?topic=516358 except without the attached sketch. What kind of game are you playing?

pert:
What kind of game are you playing?

Forgot password. Avoiding 5 minute limit. Students at the same school working together. Failed attempt at spam. The possibilities boggle the mind.

In any case, threads merged.

Hello Pert ,

Its wrongly posted 2 times and we not playing games. Any how , i have already attached sketch in 1st port under the name bhanu_murugan .

Arduino code :- WebServer_code.ino is available in attachments .