[Unreal Engine] - How To Open Ports For Multiplayer (Port Forwarding)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
if you want to be able to host an Unreal Engine multiplayer server and allow people from other networks to connect you will need to open ports on your network in this video I'm going to show you everything you need to know in order to do this if you want to see how you can set up an Unreal Engine multiplayer server in 8 minutes please consider watching my tutorial on how to create a multiplayer game in Android engine you can find a link to the tutorial in the description of this video before I show you the steps of how to set and open your ports let me first explain why we need to do this ports allow communication between devices internet facing services and applications essentially listen for ports for a connection from the outside to do their jobs without ports communication between hosts over the internet is not possible it is therefore important that you open your ports on your network so that people will be able to find and connect to your server if you've ever created a Minecraft server the way you would go about opening ports will be very similar for Unreal Engine only the one hosting the server is required to open ports the people who are connecting to your server will not have to open ports they do however need your public IP address if they want to directly connect to your server now a lot of people are not really comfortable sharing their public IP address because if someone with malicious intense gets a hold of it they can cause harm in a variety of ways they can for instance find out where you live get personal information they can even send DDOS attacks which will make your server lag or even shut down and in the worst case scenario if you have an older router with compromising settings they could even hack into that so to circument these attacks and protect you and your player base I've created a system called ipprotects the system will protect you against all direct harm that could come from sharing your public IP address and the easy to use function nodes allow you to both encrypt and decrypt a public IP address with a key so no one is able to trace it back to the original address you can find more information about iprotects if you look in the video description of this video you can modify the default ports in the Unreal Engine editor preferences menu if you go to edit editor preferences level editor the Play tab and then scroll down until you find the server port if you're unable to modify the port expand the place settings and set the multiplayer option net mode to play as listen server reopen the editor preferences menu and now you should be able to configure the port to your liking one thing to note is that I changed the port and only the port range around 777 worked so my recommendation would be to leave the port at 7777 or at 17777 once you've decided on the port that you want to open open the command prompt by holding down the windows key in R and then start typing CMD and press enter in here type ipconfig press enter and copy the default gateway for your device it usually starts with 192.168 and ends in either 1.1 or 1.0 or 0.1 or 0.0 in my case it's 1.1 open your favorite web browser and type the default gateway into the URL depending on the router that you're using the user interface that you see now may be different from mine type in your username and password and then login now you need to locate your port forward section of your router in the case of my router it's located in Van virtual server slash port forwarding here we can add an Unreal Engine port to our device so that our computer will be able to host an under the engine multiplayer server enter your service name it can be whatever you like but to keep things simple I'm going to be typing uem for Unreal Engine multiplayer we do not have to specify our source targets and we can now enter the port range this should be equal to the Unreal Engine server Port you said before in my case it will be 777 we now need to set the local IP at which the port will be open on my specific router allows me to select a device from a drop down menu however you can easily find out your local IP address from the command prompt we opened up earlier it should be the same as the host ipv4 address finally we need to set the protocol Unreal Engine uses UDP as the protocol but I usually set the protocol to be open for both UDP and TCP if I decide to implement any plugins that may be using the TCP protocol once the protocol has been set we can apply the port to our Network and apply our new settings you are now able to host an Unreal Engine multiplayer server and allow people to connect from all over the world thank you for watching and have a great day
Info
Channel: Elias Wick
Views: 8,509
Rating: undefined out of 5
Keywords: How To Open Ports For Multiplayer, Open Ports, Port Forwarding, Multiplayer, Unreal Engine Multiplayer, Unreal Engine, UE5, UE4, Shader, Shaders, Post Process Shaders, Post Process, Shader Graph, Materials, HLSL, GLSL, Unreal Engine Marketplace, Elias Wick, Unity, Blender, 3Ds Max, Maya, Tutorial, Lesson, Game Development, Game Dev, Indie Game Dev, Rendering, Animation, Tech Artist, 3D Artist, Programmer, 3D Environment, Photoshop, ZBrush, Megascans, Substance Painter, Substance Designer, Adobe
Id: IZQjLjmVMdo
Channel Id: undefined
Length: 5min 7sec (307 seconds)
Published: Sun Oct 30 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.