Windows Developer Documentation

Networking Samples

Network Programming Samples

Explore a curated collection of samples demonstrating various aspects of network programming on Windows. These examples provide practical code snippets and complete applications to help you build robust and efficient network-enabled applications.

Featured Samples

Basic TCP Echo Server

A simple server that echoes back data received from clients.

Download Sample

HTTP GET Request Client

Demonstrates how to perform an HTTP GET request to retrieve web content.

Download Sample

UDP Broadcast Sender

An example of sending UDP broadcast messages across a local network.

Download Sample

Secure WebSocket Implementation

Shows how to establish and communicate over a secure WebSocket connection.

Download Sample

Network Discovery Service

Sample code for discovering network services using WS-Discovery.

Download Sample

IP Address Information Tool

A utility to retrieve and display local and remote IP address details.

Download Sample

Resources