Connecting Unity Clients to a Dedicated Server | C# Networking Tutorial – Part 1



In this first part of my C# networking tutorial series, we set up a TCP connection between a dedicated server and a Unity client.
If you get stuck or have questions, ask them on my Discord server: https://tomweiland.net/discord

Kevin Kaymak’s channel: https://www.youtube.com/channel/UCThwyD-sY4PwFm7EM89shhQ
List of commonly used ports: https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers
Compare your code to mine on GitHub: https://github.com/tom-weiland/tcp-udp-networking/tree/tutorial-part1

Follow me:
Website: https://tomweiland.net/
Instagram: https://tomweiland.net/instagram
GitHub: https://tomweiland.net/github

If you’d like to support my channel, check out the gear & software I use below 🙂

Game Dev
⮞ Engine – Unity: https://store.unity.com/#plans-individual
⮞ Code Editor – Visual Studio: https://visualstudio.microsoft.com/vs/
⮞ 3D Modeling – Blender: https://www.blender.org/download/

Recording/Streaming Gear
⮞ Screen Recorder – OBS Studio: https://obsproject.com/
⮞ Camera – Panasonic G85: https://amzn.to/39P77GK
⮞ Microphone – Maono AU-PM422: https://amzn.to/2LsTIuG

Computer Parts
⮞ CPU – AMD Ryzen 7 2700X: https://amzn.to/3pU06K9
⮞ GPU – GeForce GTX 1050 Ti: https://www.newegg.ca/p/N82E16814125915
⮞ Motherboard – ASUS Prime X470-Pro: https://amzn.to/3p20h5f
⮞ SSD – Gigabyte 240GB: https://amzn.to/39UPWDQ
⮞ HDD – WD Blue 1TB: https://amzn.to/2O37EMI
⮞ RAM – 8GB
⮞ Case – Fractal Design Meshify C: https://amzn.to/3q6FgHy
⮞ Power Supply – EVGA 750 GQ: https://amzn.to/2N3T3A0

Other
⮞ Channel Management Tool – TubeBuddy: https://www.tubebuddy.com/tomweiland
⮞ Webhosting – Bluehost: https://www.bluehost.com/track/tomweiland/

I personally use all of the above products and services, so they are genuine recommendations. Some of these links are affiliate links, which means I get paid a small commission (at no extra cost to you) if you sign up or buy through them. Thanks for supporting the channel!

#UnityTutorial #Multiplayer #Unity3D #Networking #GameDev #Server #Client #Multiplayer #GameDevelopment #Unity #MadeWithUnity

Building multiplayer games is a complex topic. Since every game has its own specific needs when it comes to networking, any one-size-fits-all options will likely come with a downside. You’ll end up making trade-offs between performance, certain features, ease of use, and cost.

So what’s the alternative? You can build your own networking solution! That may sound daunting—and it’s by no means easy—but by the end of this step by step Unity networking tutorial series, you’ll have learned the fundamentals of how to make a multiplayer game in Unity, even if you’re completely new to networking! You’ll also learn a ton about how not only games, but also how connected software in general use TCP and UDP to communicate. In this Unity multiplayer tutorial series, we’ll be building a dedicated game server from scratch, which is essential if you want to prevent cheating.

« Interplanetary Forest » by Meydän is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/…)
Artist: https://soundcloud.com/meydansound/

Source

KA2Studio
Logo
Compare items
  • Total (0)
Compare
0