Ethernet Communication

Hello everyone, I need your help please.

I need to program a server, capable of storing information, sending and receiving information to manage bookings in a high school canteen. I use byte-type information that I store in a table, I can read it and edit it, that’s fine. But for Ethernet communication, I have no idea how to do it, despite several hours spent documenting myself on the Internet. If someone could help me or explain my problem to me, that would be very helpful.

Put the Arduino away for now. Use two PCs - one acting as a web server, the other acting as a client (using a browser). The client makes GET requests. This can be done using a browser, by combining the protocol, the server name, the script to execute, and the script data, into one URL.

For example, if the protocol is https, the server is www.google.com, and the script is search, and the data is q="smith & wesson", the URL would be:

https://www.google.com/search?q=smith+%26+wesson

You need to define the protocol (most Arduinos only do http), the server (that's your server), the script (often a php script) to execute, and the names of the variables that the script expects to be valued.

The Arduino would connect() to www.google.com, and make a GET request that looks like:
GET search?q=smith+%26+wesson HTTP/1.1
and would then define a host header:
Host: www.google.com

You've provided way too few details about what you are trying to do to get any real help.

Hello everyone,

Help please.

I want to communicating ARDUINO WEB SERVER and ARDUINO WEB CLIENT through Home Network.

  1. It communicating through L3 Switch.

  2. ARDUINO WEB SERVER or ARDUINO WEB CLIENT direct connect to PC(ICMP for Client)(ICMP and HTTP for Server) It communicating.

  3. But It not communicating my network.

  4. It not communicating through L2 Switch.

  5. It not communicating direct connect ARDUINO WEB SERVER and ARDUINO WEB CLIENT(Cross/ Straight Cable)
    up to link status not come.

Client details

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEC, 0xDE, 0xCD };

// use the numeric IP instead of the name for the server:
IPAddress server(10,51,6,100); // server ip set more two place
//self IP
IPAddress ip(10, 51, 6, 50);
IPAddress gateway(10, 51, 6, 1);

client.println("GET /LCD HTTP/1.1");
client.println("10.51.6.100");

Server details

byte mac[] = {
0xDE, 0xAD, 0xBE, 0xED, 0xCE, 0xED
};
IPAddress ip(10, 51, 6, 100);
IPAddress subnet(255, 255, 255, 0);
IPAddress gateway(10, 51, 6, 1);
IPAddress dnServer(10,11,100,100);

THANKS