Ethernet connection, not able to get data from Arduino XAMPP

Dear all, I doing my GSR Web App, but I am not able to save data into my DB or display data using my php file through XAMPP

Component: Seeed 101020052 GSR finger sensor, Seeeduino 102010026 V4.2 Arduino Compatible Board, Seeed 103030000 Grove Base Shield V2, W5100 Ethernet Shield for Arduino



Are there any special setting or code when using Seeeduino board different to Arduino board? such as special byte Mac ?



My Arduino sketch is below:
[code]
#include <Ethernet.h>
#include <SPI.h>

byte mac[] = {
0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; //Replace with your Ethernet shield MAC

byte ip(169,254,189,141);
//IPAddress ip(169,254,189,141); //ethernet ip address, if using IPAddress ip(), port output connection failed

// EDIT: ‘Server’ address to match your domain
char server[] = “169,254,189,138”;
//IPAddress server(169,254,189,138);
EthernetClient client;

int photocellPin = 0;
int photocellReading;

void setup()
{
Serial.begin(9600);
Ethernet.begin(mac,ip);
delay(1000);
Serial.print("Arduino server IP address: ");
Serial.println(Ethernet.localIP());
}

void loop() {
photocellReading = analogRead(photocellPin);

if (client.connect(server, 80)) {
Serial.println(“connection successed”);
Serial.println(photocellReading);

client.print("GET /test/test1.php?"); // This
client.print("value="); // This
client.print(photocellReading); 
client.println(" HTTP/1.1");    
client.println("Host: 169.254.189.138");
client.println("Connection: close");
client.println();   

}
else {
// If you couldn’t make a connection:
Serial.println(“Connection failed”);
Serial.println(“Disconnecting.”);

}
delay(8000);
}
[/code]

About code with a warning when verify:

However, data can be outputted from the port COM (serial monitor), show server ip is 0.0.0.0. it can not send the data to my php file.

I have no idea what wrong on this?

Hi, when i compile your code, it has the same error. the seeeduino v4.2 and uno are most the same. please check <LINK_TEXT text=“https://www.arduino.cc/en/Tutorial/WebS … lock&num=1”>https://www.arduino.cc/en/Tutorial/WebServer?action=sourceblock&num=1</LINK_TEXT> and do some modifications. thanks.



Bill