A small example of TCP server over ethernet for mbed-os.

Dependents:   mbed-os-tcp-server-example


This example demonstrates how to use TCP server to send HTTP responses over Ethernet. You will need both a PC and a board with Ethernet port connected to the same local network.

How to use it ?

1. Program

Import this code into your compiler, select your platform from the top right, compile the code, load it onto your board.

2. Get IP address

Open a UART terminal and reset the board. The IP address of the target appear.

Basic HTTP server example
Target IP address is ''

3. Open the web page

Copy the IP address of the board in a web browser and press Enter. The following web page appear.


Download repository: zip gz

Files at revision 2:e72bc303ea90

Name Size Actions
main.cpp 1752 Revisions Annotate
mbed-os.lib 77 Revisions Annotate