Using the Arduino Ethernet shield as a server

Luca shows how to turn your Arduino with an Ethernet shield into a server. He goes over how to code your Arduino to handle HTML and HTTP protocols using strings.

I’m going to show you a simple program that prints on serial connection browser‘s requests and answers with a simple HTML page. This program is useful to understand how to use HTTP functions and also to find out which informations a browser sends within the request (you’ll learn how to use those informations in a coming post).

At the bottom of the page he showed an example of page icon usage, for which he used our site. Thanks Luca!

Join the Conversation


  1. Since the Ethernet shied only has 4 connections available, it is not going to be much of a ‘server’ especially since the Arduino is not multithreaded, as such it is only going to deal with 1 connection at a time
    So this cannot be classed as a ‘server’ but rather a single client and master.
    Move along nothing to see here.

    1. thanks for the comment bob. so here I am trolling again. Wait, what is it? not much of a server or not a server? 4 connections really? good because I didn’t realize it had that many. I was going to be happy with “get inline and wait your turn”… No it’s ok I just looked it up over here: and it doesn’t say what is the minimum connections it only says usually. It says this specifically about load limits:

      A web server (program) has defined load limits, because it can handle only a limited number of concurrent client connections (usually between 2 and 80,000, by default between 500 and 1,000) per IP address (and TCP port) and it can serve only a certain maximum number of requests per second depending on:
      its own settings,
      the HTTP request type,
      whether the content is static or dynamic,
      whether the content is cached, and
      the hardware and software limitations of the OS of the computer on which the web server runs.

      So It can be a server and no one has to rewrite anything. Or leave.
      I have an Arduino Uno Ethernet, a mega, ethernet shield, 328 chip…
      Rock on makers build yourself a “personal webserver” just check out luca and

Leave a comment

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.