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

preview_player
Показать описание
In this first part of my C# networking tutorial series, we set up a TCP connection between a dedicated server and a Unity client.

⎯⎯⎯⎯⎯⎯

⎯⎯⎯⎯⎯⎯

Gear & Software I Use

Developing

Recording & Streaming

Computer Parts & Peripherals
⮞ RAM - 8GB x2

Other

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.

⎯⎯⎯⎯⎯⎯

Рекомендации по теме
Комментарии
Автор

when incoming connection messange showed up i was screaming like NASA when they got messange of first moon landing
Thank you a lot. Best guide that i have ewer seen.

Caliper_Click
Автор

As I was editing this, I felt like there were some things that I could have explained a little better.
This is my first tutorial and I'm always learning, so I'll do my best to explain things in more detail in the future.

If you guys have any feedback regarding the video, please let me know 👇

tomweiland
Автор

Please don't randomly stop uploading these videos. You see a lot of tutorials where they just stop without warning. Good video.

MintAIO
Автор

Tom, my guy, you just turned what would have been who knows how long looking into network programming into like an hour or two of work. You're a lifesaver.

TimothyBreadman
Автор

Oh, boy! You deserve so many more subscribers!! This is SOLID content!! I started studying C# last week and I'm loving it! I came here because of Dani and now you have +1 subscriber/liker!! Keep it up, man!

rafaelgpontes
Автор

the feeling when i coded half an hour but im just 6 minutes in the video

benceberenyi
Автор

You are reading and replying to comments in this video even to this day... your dedication is just surprising. You gained one sub, you deserve a lot more :)

theboomcommenter
Автор

dani talked abouuut you, , thanks nice tut.

yousefyousef
Автор

Since uploading this video, I've created a repository on GitHub. If you run into issues, you can compare your code mine:

tomweiland
Автор

this gives a good idea for people who want to actually know how it works, extremely helpful

MrDeadNote
Автор

Really Stellar Tutorial! I can't thank you enough. One addition I would suggest is to go over the logical flow really quickly at the end.
For example: TcpListener -> Accepts Client -> Connects to Client Socket -> Stream that Accepts data

calvinhuang
Автор

Straight to the point. I love it! I had to slow the video down so I can catch up with my typing but it’s no biggie. Thanks for putting this together.

Hypersniper
Автор

I remember doing this and my pc would crash idk why it works now but I’m happy that I can use this cause it’s better than pre built ones with limits

calcumalations
Автор

First and foremost, thanks a lot for this networking tutorial. I came here thanks to Dani's videos but I stuck because of how well everything is explained and way more intuitive than other methods I tried. Having a multiplayer in my school project being mandatory, I really feel like I owe you one. Anyway, thanks man !

verdy
Автор

This series is PERFECT thank you so much I already understand so much of it just from this 12 min video, you’re very great at explaining things lol! about a year ago I was using UNET and just gave up because it would NEVER sync the clients movements and would keep a copy as a child of the main player the whole time I just gave up definitely going to give this a try. I’ll lyk my results! THANK YOU SO MUCH!

audacityfilmsproductions
Автор

Awesome tutorial! Thank you. I would like to suggest you to set your font size larger when you are recording tutorials. It's not easy to read your code in 720p or a small screen :D

owofinctive
Автор

"hosting minecraft servers with server jar" flashbacks

setseretze
Автор

*IMPORTANT: these tutorials and the code in them are outdated!*

tomweiland
Автор

I was lacking the networking knowledge, now that i found your channel im hoping to fill the holes in my knowledge with information! Thank you

erkamenescol
Автор

Dang man, this is awesome. I really appreciate the effort put into this video, and I'll definitely be watching till the end of the series.

rhetthenderson