Best Practices for Creating Game Server and Client

Best Practices for Creating Game Server and Client

  • English
  • Programming
  • C#C#
  • (737)
  • Project length: 3h 17m

Do you want to get into networking, and want to create your very own game server? Then this video series is exactly what you want to watch! If you ever wanted to create your very own MMORPG or Online game and you don't know how to start and you are still a beginner in game development you are at the correct place. In this 5 Part series we will create an TCP Game Server and Game Client. You will also learn the very basics of TCP networking and Sockets.

Overview

How to create a game server and client

Server/Clients

Do you want to get into networking, and want to create your very own game server? Then this video series is exactly what you want to watch! If you ever wanted to create your very own MMORPG or Online game and you don't know how to start and you are still a beginner in game development you are at the correct place. In this 5 Part series we will create an TCP Game Server and Game Client. You will also learn the very basics of TCP networking and Sockets.

What Will I Learn?

  • Basics of TCP Sockets.
  • Setting up a multi-client game server console application.
  • Allow incoming connections on the server.
  • Specify every connection with its own connection ID.
  • Setting up a basic game client console application.
  • Connect with the server.
  • Creating a very own network message system.
  • Sending network information over the network.
  • Receive network information over the network.
  • Packet loss prevention.
  • Setup the server on a Windows Virtual Server to allow connections from all around the world.

What Can I Do With This?

After you have completed this course you will be able to understand the inner workings of a online game. You will be able to create your own game server to implement it everywhere you want. You will be able to create your very own online game, or online application for windows,android or even console games!

What Are The Requirements?

  • Windows PC or Mac OS X.
  • Atleast .NET Framework 3.5 installed.
  • Visual Studio, Visual C# or any other C# IDE/Compiler

Contact Me

You will be able to write me a private message https://www.facebook.com/UnityKaymak/

Support Me

https://www.patreon.com/user?u=8061354

Project Outline

Session 1: Creating a TCP Server

  • Introduction
  • Creating a new Project
  • Information about IP-Protocolls
  • Creating a TCPListener
  • Setting up the TCPListener
  • Start the server

Session 2: Creating a TCP Client

  • Accept incoming connections
  • Adding a new Project
  • Creating a TCPClient
  • Setting up the TCPClient
  • Creating a NetworkStream
  • Connecting to the server

Session 3: Multiple client connection

  • Creating a "Client" Class
  • Setting up the Client Class
  • Making every Client unique
  • Adding a incoming connection to array
  • Allow max. connections.
  • Connect with multiple clients to the server

Session 4: Creating a Packet Buffer

  • Adding a new .DLL project
  • Setting up the Custom Buffer Class
  • Writing data into a byte
  • Reading data from a byte
  • Creating .DLL File
  • Adding file to server and client project

Session 5: Sending Network Messages

  • Creating custom server and client packages identifier
  • Creating our first network message
  • Handle network data
  • Prevent packet loss
  • Sending data from server to client and backwards
  • Receiving data from server on client and backwards
  • Execute Methods on client from server
  • Closing the project

Reviews

Average rating

5(737 Reviews)