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:
#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.print("Arduino server IP address: ");

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

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

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

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


About code with a warning when verify:

However, data can be outputted from the port COM (serial monitor), show server ip is 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=“ … lock&num=1”></LINK_TEXT> and do some modifications. thanks.