Learn with our tutorials and training

developerWorks provides tutorials, articles and other
technical resources to help you grow your development skills
on a wide variety of topics and products. Learn about a specific
product or take a course and get certified. So, what do you want to learn
about?

Featured products

Featured destinations

Find a community and connect

Learn from the experts and share with other developers in one of our
dev centers. Ask questions and get answers with dW answers. Search for local events
in your area. All in developerWorks communities.

Featured Developer Centers

Featured destinations

Programming Linux sockets, Part 1,Using TCP/IP

Creating an echo server and client

From the developerWorks archives

David Mertz

Date archived: March 7, 2017 | First published: October 28, 2003

This introductory-level tutorial shows how to begin programming with sockets. Focusing on C and Python, it guides you through the creation of an echo server and client, which connect over TCP/IP. Fundamental network, layer, and protocol concepts are described, and sample source code abounds.

This content is no longer being updated or maintained.
The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some steps and
illustrations may have changed.