---
title: Build a P2P game with the WebRTC Data Channel
description: This in depth tutorial shows you how to use the WebRTC DataChannel to send commands and data in a Peer to Peer multiplayer game.
---

[WebRTC.ventures Blog](https://blog.webrtc.ventures)

# [Build a P2P game with the WebRTC Data Channel](https://blog.webrtc.ventures/2015/09/p2p-gaming-webrtc-data-channel)

 Written by [ArinSime](https://blog.webrtc.ventures/author/arinsime) | Sep 3, 2015 4:00:00 AM

## P2P Game with the WebRTC Data Channel

WebRTC gets a lot of attention because of the **video and audio communications** it offers to web and mobile applications. **But there is a lot more you can do with WebRTC!** In this [post that I wrote for WebRTCHacks](https://webrtchacks.com/datachannel-multiplayer-game/), I’ll show you in depth how to write WebRTC code that lets you use the **Data Channel** to send commands and data between two users in a **multiplayer game**.

*Here’s what the final product will look like:*

*Would you like to learn more and see how to do this yourself? Then check out **[my DataChannel blog post on WebRTC Hacks](https://webrtchacks.com/datachannel-multiplayer-game/)!***

[View full post](https://blog.webrtc.ventures/2015/09/p2p-gaming-webrtc-data-channel)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "ArinSime"
  },
  "dateModified" : "2024-04-03T18:09:04.839Z",
  "datePublished" : "2015-09-03T04:00:00Z",
  "headline" : "How to build a P2P game with the WebRTC Data Channel",
  "image" : {
    "@type" : "ImageObject",
    "height" : 284,
    "url" : "https://45353883.fs1.hubspotusercontent-na1.net/hubfs/45353883/Imported_Blog_Media/cardgame_shutterstock1.jpg",
    "width" : 800
  },
  "mainEntityOfPage" : "https://blog.webrtc.ventures/2015/09/p2p-gaming-webrtc-data-channel",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "WebRTC.ventures Blog"
  }
}
```