Unreal Engine Dedicated Server #1: Setup Dedicated server and Client builds

Patreon: / sneakykittygaming
Discord: / discord
Ultimate FPS Template Plugin: www.unrealengine.com/marketpl...
In this video we setup our project so make it easy for us to package both client and server builds!

Пікірлер: 128

  • @eliasherman1505
    @eliasherman1505 Жыл бұрын

    Every single time I need to learn something for work, you have uploaded a tutorial on the subject like 3 months before. Absolute gigachad, subbed to your Patreon.

  • @Pac-bq2sn
    @Pac-bq2sn2 жыл бұрын

    always good to see tuts on dedicated servers 🙏

  • @erikas_j
    @erikas_j2 жыл бұрын

    Just woke up and first thing I found was this video, I guess i have no other choice than spend my whole Sunday on building some dedicated servers. 😅😅

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    Lol thankfully its very easy so youll be free by noon!

  • @default1988
    @default1988 Жыл бұрын

    Thank you so much. Just subbed. I've been waiting for a tutorial what explains it in detail 😁

  • @user-hp2bp9qt3u
    @user-hp2bp9qt3u3 ай бұрын

    It's so useful! Thank you for making this video.

  • @soadindakhor3932
    @soadindakhor39323 ай бұрын

    you are an Unreal King!!! very cool Training

  • @alysonantunes
    @alysonantunes8 ай бұрын

    Thanks for the information.. I'm new in Unreal Engine

  • @vect0r804
    @vect0r8042 жыл бұрын

    You are a legend mate thank you 🙏

  • @thebrothersgrimmproductions
    @thebrothersgrimmproductions2 жыл бұрын

    This is great. Cheers dude. Ive done mine in UE 5.0.1, so all works great with the new source :)

  • @tomtomkowski7653

    @tomtomkowski7653

    Жыл бұрын

    So making step by step this tutorial it will also work in UE5?

  • @thebrothersgrimmproductions

    @thebrothersgrimmproductions

    Жыл бұрын

    @@tomtomkowski7653 yes no issues at all.

  • @thebrothersgrimmproductions

    @thebrothersgrimmproductions

    Жыл бұрын

    Also to note the same project works by design in 5.0.3 🙂

  • @biancabia6871

    @biancabia6871

    Жыл бұрын

    It works in UE 5.2 too

  • @DoluTattoo
    @DoluTattoo Жыл бұрын

    Thanks a lot for the tutorial. Still works great today using 4.27.2 If someone get an error related to AutomationTool while packaging client, I personnaly had to build 'AutomationTool' from UE source project to fix it.

  • @ttscrewypm

    @ttscrewypm

    Жыл бұрын

    I'm trying my brother, there is no problem in the editor, but it gives an error when setting up a server

  • @moshiwei8454
    @moshiwei8454 Жыл бұрын

    Hi, I am getting "The selected platform/configuration is not valid for this target" In VS when building as a development server. any help or tips will be greatly appriciated, please?

  • @taigabit
    @taigabit11 ай бұрын

    Hey there, great video, very helpful! You mentioned the separation of classes for client and server can be set. In the c++ class file you defined the type to "Game". How do I tell UE what c++ classes and blueprints or functions get packed into the dedicated server and the client? Is that -all- handled just by setting the TargetType.Server in the c++ classes and by the "run on server" functions in blueprints? Meaning that UE "picks" the elements as they are defined for each or how is that instructed?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    11 ай бұрын

    I have a video on that, its done in c++. Basically you can wrap your code in if definedes and if the condition is false (such as if dedicated server) it will not compile the code for the client

  • @arjunc5896
    @arjunc5896 Жыл бұрын

    Hi, I Built a dedicated server for my game. But unfortunately, the game map is loaded by server on Open Level (IP address). But the game mode is not working, and the functionalities attached with the map is also not working. Do you have any idea why?

  • @RobinDale50
    @RobinDale502 жыл бұрын

    Question about using a Source build for the server: when I am working on the clients (game), do those also *have* to be made on the source engine build? Or can they be made with the "regular" engine installs? I tried this a couple of years ago and ran into all sorts of issues and difficulties with getting marketplace stuff to install in the source builds, plus there was constant engine rebuilding/repairing needed. Plus plus the source builds are about double the size of the standard installs.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    If I recall you need the same build ID (engine) for the clients and server to connect to. With the source build you can force it to have a specific build ID before you compile but I cant recall how to do it off the top of my head. This will allow you to share a repo between you and other people with the source build if you both use source with the same build ID. As far as plugins go, your better off installing the plugins directly into your project. Thats what I always recommend people do as opposed to leaving them in the engine. Once your up and running you shouldnt need to touch the engine again unless you want to modify it or update it.

  • @Tokey35
    @Tokey35 Жыл бұрын

    the -log command is not opening up cmd :( ... using UE 5.2 source

  • @anonymousaggregator5371
    @anonymousaggregator5371 Жыл бұрын

    Does this work on android? And does it work with unreal 5? Keep up the great work!

  • @SurvivalExposed
    @SurvivalExposed Жыл бұрын

    every time i try to open to connect to the server I never see it connect and i never see my second players

  • @marcooasan1668
    @marcooasan1668 Жыл бұрын

    @10:03 it freezes coz you accidentally click the console unless you right click inside the will continue again

  • @asence
    @asence Жыл бұрын

    My server is starting, but I cant connect to the server, the level is loading but Im not getting any logs on the server

  • @braidend4379
    @braidend43792 жыл бұрын

    Hey mate, very informative. I have a question, can you run game ability system on a dedicated server? and how would one go about doing that? If you're familiar with the GAS Companion plugin, would that be an option to have the client side be made with blueprints and limit C++ required for server side? Cheers

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    You could do all that yes.

  • @braidend4379

    @braidend4379

    2 жыл бұрын

    @@SneakyKittyGameDev Cheers for the quick response. I'm completely new to the networking / dedicated server space and trying to plan out my plan of attack for a practice project.

  • @antonds
    @antonds5 ай бұрын

    How can I build server for Linux dedicated server (my dev machine is Mac)? I use Rider. And thanks for this tut!

  • @Bluemaze64
    @Bluemaze642 жыл бұрын

    OMG, I thought I was going crazy, for two days I have had my UE5 server build crash with the official released source, was pulling my hair out trying to figure out why and you had the same problem with pre-release. I hope they fix this soon.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    Yep and ontop of that someone else I know had the same problems. It will probably be one of those things sorted by the official 1.1 release since the installer build seems way behind the github repos

  • @boredtolife7879
    @boredtolife7879 Жыл бұрын

    I appreciate the tutorial. Is there a way to not have to have the source build of UE sitting on my computer? It's over 200 gigabytes. Is there perhaps a way to move it to a different computer but still be able to do everything from my main one? Thanks.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    You can have it on another pc and when your ready to package it out move it over to that machine to do so

  • @ActionGamingLegends
    @ActionGamingLegends Жыл бұрын

    Will this work in android build

  • @lemonking8598
    @lemonking859810 ай бұрын

    Hello, Thank you for the tutorial everything was very well explained.I know this video is one year old but I was wondering if I want other people to connect to the server I need to open 7777 port right?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    10 ай бұрын

    If you dont have a form of NAT punchthrough such as by using something like Steam or EOS or your own then yes

  • @lemonking8598

    @lemonking8598

    10 ай бұрын

    ​@@SneakyKittyGameDevthank you

  • @thatonefoxxy
    @thatonefoxxy Жыл бұрын

    One questtionnn: Why exactly do I need to build unreal engine by myself? I got a totally fine build of UE5 installed, and don't want to on top of the 1 day it took for installing/downloading go through the suffer of building it myself?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    If you want to package a dedicated server you need to use the source build.

  • @TheWpNCrew
    @TheWpNCrew Жыл бұрын

    Can I make a game with blueprints and still make it have dedicated servers? Or should I stop my game and remake it on c++?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Yes you can.

  • @rossgribben4870
    @rossgribben4870 Жыл бұрын

    so if i wanted to send the server project to someone in 1 country, then send the client project to 3 other people in different countries... Is there a method for the server project to automatically set their IP and for the client project to automatically find that IP? I hope the scenario makes sense, what is the best solution? Or even if I made a start widget that set a string variable of the IP then fed it to 'open level'... would the person with the server just need to tell them what to type (using cmd>ipconfig)? Does the server know and use whatever IP it is being launched on automatically or would it also need to input it somehow?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    You would need to setup your own web api for that so when the server launches it sends a post request to it to tell it the ip of the server, then when clients load their game it does a get request to receive the ip of the server so it can connect to it. otherwise you can use the online subsystem with steam or eos or whatever which tries to take care of that for you

  • @ManuelBindi
    @ManuelBindi Жыл бұрын

    Hi, i haqve a question: when i put the ip of the server, is the server automatically opening a session or he just connect? I must know if is a sort of auto handling connection or if it active online subsystems, EOS ecc.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    If the server is open and you enter in the IP of the server it will attempt to connect by default. For "auto handing" you will want to use the online subsystem

  • @farhanurrahman006
    @farhanurrahman006 Жыл бұрын

    Is there any way to join session through ui? If it's possible then how to do it? Because for making any multiplayer game I need to implement join session through ui.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Yes. For starters everything is possible, and 2 that would be very easy but you need to learn the basics of UI in unreal and programming

  • @huboy465
    @huboy465 Жыл бұрын

    Can you create a DS server with the player's computer through steam, and then connect with other players? thank

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    You can. If thats going to be your only form of hosting I would recommend going the listen server route to save some headache or support both.

  • @albertkam191
    @albertkam1912 жыл бұрын

    Hi again man! Are you familiar with the Replay System that unreal has? If so, any chance you could talk about it (specifically instances where clients can record their gameplay while playing on a dedicated server) and then watch the replay back?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    That I have no looked into yet. If I remember when I wakeup I'll check it out. I'm a bit curious.

  • @rabbit-istudios5444

    @rabbit-istudios5444

    2 жыл бұрын

    Yeah i think you could do like a uhh killcam with this, sounds very cool.

  • @albertkam191

    @albertkam191

    2 жыл бұрын

    @@SneakyKittyGameDev Thanks, sounds good. And yeah, it's a very cool feature that was introduced a while back in UE4. It seems like when you watch the replay back, the replay itself references most of the stuff in that world (i.e objects, etc etc) it's weird. And even though the replay is recorded on the client, it is still somehow related to the server itself (not sure how), really not a lot of info/guides on this out there currently at the moment. And yes, killcams sound nice but pretty complex as I'd imagine. If you figure it out eventually, would be awesome if you could make a video and explain things :)

  • @albertkam191

    @albertkam191

    2 жыл бұрын

    @@SneakyKittyGameDev Also sorry for spamming you with all these replies, I am just a junior developer and the topics that you are talking about in your videos are extremely relevant to what I am currently doing. Do you work for some company as well at the moment? Since you are so experienced I am assuming you are up there somewhere :D

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    @@albertkam191 Agreed. If I find the time I'll check it out, depends on how the system is. No problem, I do not, currently I work for myself and with youtube/patron/plugins and the occasional contract work.

  • @digitaldruglord6888
    @digitaldruglord68882 жыл бұрын

    how can we make a dedicated server list on a widget so we can pick and choose a server????

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    I cover that in this playlist here. you have to combine the two. since its a dedicated server, in the game instance Init function you need to wrap in an if defind so it automatically creates the server only on the server build #if UE_SERVER //Create server here #endif kzread.info/dash/bejne/nY6lr7SgYLGsgNY.html&ab_channel=SneakyKittyGameDev

  • @TheAnimatedSquid
    @TheAnimatedSquid Жыл бұрын

    Is it common for the size of the project directory to be like 46gb?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Not for the project unless you have a bunch of content in it

  • @OutFinity374
    @OutFinity37418 күн бұрын

    Does this work for connecting from different connections?? Plzz reply i really need that🙏🙏

  • @beilog7489
    @beilog74893 ай бұрын

    Hi, the server machine im working on doesnt have a graphics card it has only server graphics, which isnt rly capable of running Direct X. Can I still somehow build a server on it or will i have to request a dedicated gpu to be added?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    3 ай бұрын

    A dedicated server is typically headless and shouldnt render anything so it shouldnt need a gpu

  • @beilog7489

    @beilog7489

    2 ай бұрын

    @@SneakyKittyGameDev Cool thanks! Another question tho, do i have to repackage the server whenever I make the change to my game?

  • @joeljesusi9228
    @joeljesusi9228 Жыл бұрын

    Hi! Is it posible to enter the project from a web browser? (instead of the .exe file) so I would just send 1 link to a client. Thanks in advance

  • @codife

    @codife

    Жыл бұрын

    maybe you can do that with pixel streaming

  • @valentinf2658
    @valentinf2658 Жыл бұрын

    Hi! Really appreciate your tutorial. it's clear and detailed enough. Was able to replicate it successfully. I have a question though. On that tutorial you're using 127.0.0.1 IP address I guess because you're opening the two clients from the same laptop. What would you need to change if you wanted to have one client running from another laptop through LAN? Therefore on the same network but not on the same laptop directly. Thanks

  • @TheFoyer13

    @TheFoyer13

    Жыл бұрын

    So on your client laptop you would point to the local IP of your server. So, `open 192.168.x.x` Also helps to set the server to a static IP address so you don't have to check it all the time.

  • @Ali-1992
    @Ali-1992 Жыл бұрын

    Hello my friend, I have an important question. How can I create a server with 40 players and when I press the word start, I enter the match and become 20 players against 20 players?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Setup an enum for teams and make it replicated on the player state and when you start have the server simply assign each player a team and go from there.

  • @Ali-1992

    @Ali-1992

    Жыл бұрын

    @@SneakyKittyGameDev So will this video help me?

  • @eren_guneri
    @eren_guneri Жыл бұрын

    Hey sneaky, I tried this on a clean ue5 project and my server was extremely laggy. Do you know what might be the issue?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Was this when testing locally or with a friend on a different network?

  • @eren_guneri

    @eren_guneri

    Жыл бұрын

    @@SneakyKittyGameDev Locally, only on my pc and network just like in the video.

  • @eren_guneri

    @eren_guneri

    Жыл бұрын

    @@SneakyKittyGameDev And it wasn't fps drop or anything it was pure lag

  • @eren_guneri

    @eren_guneri

    Жыл бұрын

    @@SneakyKittyGameDev My dumbass thought it was lag but it was just my computer focusing on one window and the other looked laggy. When I move on one client and immediately change to other it looks smooth for a second before character stops so i think it's okay. Sorry for this dumb question lol.

  • @GoddaryuTUBE
    @GoddaryuTUBE2 жыл бұрын

    Have you tried again now UE5 is fully released? I'm not getting any crashes, it actually runs better for me than UE4 and also takes up less space.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    Yes, still have issues with the source builds up on github.

  • @GoddaryuTUBE

    @GoddaryuTUBE

    2 жыл бұрын

    @@SneakyKittyGameDev well I'll follow along the tutorial on my next day off work and let you know if I run into any issues I have the main branch source build that I cloned through git and compiled 2 days ago

  • @thedevelopershub8263
    @thedevelopershub82632 жыл бұрын

    which microphone you are using

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    Rode Pod Mic with a GoXLR mini and cloud lifter

  • @attilakralik8371
    @attilakralik8371 Жыл бұрын

    Hello, i am new in unreal engine and i am wondering how do i connect from a different computer to the server, i have tried from the same computer and it works but when i am trying to connect form a different one on the internet i cant do it. Thx allot for the video.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    If your not using something like the steam online subsystem you need to port forward 7777 on the hosting machine and connect to its public ip

  • @attilakralik8371

    @attilakralik8371

    Жыл бұрын

    Thx for the anwer, i will try now to open the ports and see if its working, but by any chance do you have a tutorial for that? thx allot.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    @@attilakralik8371 Not on port forwarding but theres plenty of guides. its dependent on the UI of your router on how

  • @iliaspsomiadis319
    @iliaspsomiadis3198 ай бұрын

    bro plz help...i dont have this f-ing file called source

  • @termway9845
    @termway9845 Жыл бұрын

    How do you open your console at 10:32 ?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Tilde

  • @zoltantoth6015
    @zoltantoth601510 ай бұрын

    Is this works with Hamachi as well?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    10 ай бұрын

    Yes

  • @pred5598
    @pred55989 ай бұрын

    Do I need to Port Forward or not?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    9 ай бұрын

    Depends on where/how you host. If your using a service that provides NAT punchthrough like Steam or EOS then no.

  • @tfivegames
    @tfivegames Жыл бұрын

    How do you open the project? Once I make a C++ class it converts to visual studio and you cannot go back to the editor anymore (opening the project via UE gives a "module out of date" error). On top of that, building my project takes 5-10 minutes (blank project). Any advice? I don't think programming in Unreal Engine with a 5-10 minute compile time to make a small correction on one line is an efficient way to develop.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Then you have a problem elsewhere. It should not take 5-10 minutes each time you compile, it should take a matter of seconds (unless your recompiling the entire project but even then its short). Make sure you have everything needed for visual studio (in the visual studio installer make sure the needed options are checked). As far as the module out of date error im not sure on but it sounds like that may be related to your compiling issue like one of the modules are failing to compile for whatever reason.

  • @tfivegames

    @tfivegames

    Жыл бұрын

    @@SneakyKittyGameDev I figured it out last night from trial and error, thanks for responding! By creating a blueprint project, and then adding a C++ class, it shuts you out of the editor and opens Visual Studio. You have to build the project after this happens. Once you build the project, you can open it in UE again, but until you build it in Visual Studio, it will continuously tell you that the module is out of date or the project is FUBAR. All is working now, and your tutorial is excellent! Thank you.

  • @Nin10doLetsPlay
    @Nin10doLetsPlay4 ай бұрын

    Wait, dont you have to pay for a Dedicated Server?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    4 ай бұрын

    No, only to have someone host it. You can host it yourself for free. Also why do so many people thumbs up their comments right after posting

  • @Nin10doLetsPlay

    @Nin10doLetsPlay

    4 ай бұрын

    @SneakyKittyGameDev oh ok. So can I host only 1 dedicated server or multiple dedicated servers at the same time? Also yeah sry just used to like my own comments for some reason. A bad habit ik 💀

  • @ChakriChanduMediaWorks
    @ChakriChanduMediaWorks2 жыл бұрын

    Is it possible to create and join sessions in a dedicated server?

  • @rabbit-istudios5444

    @rabbit-istudios5444

    2 жыл бұрын

    With AWS you def can.

  • @ChakriChanduMediaWorks

    @ChakriChanduMediaWorks

    2 жыл бұрын

    @@rabbit-istudios5444 Can you please make a tutorial on that! If it's not possible to record one, please share some references where can I get to know the process

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    You would have to use whichever hosts api to spool up an instance of it unless you roll your own system. You may be better off hosting/joining via beacons and then find an empty server to connect to

  • @ChakriChanduMediaWorks

    @ChakriChanduMediaWorks

    2 жыл бұрын

    @@SneakyKittyGameDev can I use CREATE SESSION & JOIN SESSION nodes that comes with default Unreal Engine Online Subsystem in a dedicated Server?

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    @@ChakriChanduMediaWorks Yes. Nothing there changes

  • @ruellerz
    @ruellerz Жыл бұрын

    I wish I could expedite the packaging so i could test things out faster.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Look at my testing dedicated server video. It hosts a dedicated server without the need for packaging allowing you to rapidly test

  • @ruellerz

    @ruellerz

    Жыл бұрын

    @@SneakyKittyGameDev Worked great ty! Is using Multicast RPC for movement a good idea? So laggy :(

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    @@ruellerz It is not. I have a video covering the character movement component where we make a simple sprinting mechanic in it properly with prediction and correction.

  • @lorygames
    @lorygames Жыл бұрын

    3:00 when he actually starts

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Nuh uh 3:30

  • @snakezo4218
    @snakezo4218 Жыл бұрын

    if I understood the dedicated server is not a p2p server I would like to do a 12vs12 fps is it possible that the unreal engine service can do it?

  • @djeaseback6466
    @djeaseback64669 ай бұрын

    Why include 'server' in both project names? It's like an unneccessary level of confusion that could have easily be avoided.

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    9 ай бұрын

    The project name was DediServerTut, Im not sure how that name gets confusing with other things labeled server

  • @nullchecker9985
    @nullchecker99852 жыл бұрын

    hi first of all tnx for creating this tuts ,i have a question i want to sub on your patreon but patreon ban my acc bc im from iran can you create some way to sub you with bitcoin or etheriom and expensiver than patreon and accses to your tuts i can not wait to see on youtube i want to be the first guy that see your tuts plz hlp me tnx

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    2 жыл бұрын

    Thats unfortunate. If your patient the videos from this series are released for free. It's a very short series.

  • @youngjojo3052
    @youngjojo30522 жыл бұрын

    Thanks man, do you have an email I can contact you and discuss some business with you?

  • @mrradovan6992
    @mrradovan6992 Жыл бұрын

    Hello do you have any discord to get in contact with you i need help with a online multiplayer issue would really appreciate it

  • @SneakyKittyGameDev

    @SneakyKittyGameDev

    Жыл бұрын

    Discord is in the description