# How to launch a Dedicated Server through EOS and notify clients to join it?

**URL:** <https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 28, 2023, 12:34pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382 "2023-10-28T12:34:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![IEliot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ieliot/32/1117433_2.png) [@IEliot](https://forums.unrealengine.com/u/IEliot)\
**Post date:** [October 28, 2023, 12:34pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/1 "2023-10-28T12:34:38Z")

</div>

My thoughts:

The client (player) creates a Lobby through EOS and joins Lobby. When all players are ready, how can I notify my cloud server to start a Dedicated Server and return the IP address and port so that the client can join the Dedicated Server through the “open address”.

Through NAT P2P in EOS? How to communicate between the client and server of EOS?  
Or do I need to write a Socket communication program myself?

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [October 28, 2023, 1:19pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/2 "2023-10-28T13:19:07Z")

</div>

I never did this before, but i think it work like this:

1-Create a dedicated server  
2-The server create sessions (or lobbies using EOS)  
3-Then the clients can connect to server (Using URL, IP:Port, or something)  
4-Then Clients can join to the session

> [@IEliot](#):
>
> Or do I need to write a Socket communication program myself?

I think yo don’t need do this…  
The Engine does it.

https://www.youtube.com/embed/ad5MZLSDAZk?feature=oembed&wmode=opaque&start=318

---

<div class="post-metadata">

**Author:** ![IEliot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ieliot/32/1117433_2.png) [@IEliot](https://forums.unrealengine.com/u/IEliot)\
**Post date:** [October 28, 2023, 1:59pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/3 "2023-10-28T13:59:10Z")

</div>

Thank you for your reply.  
But there are still several issues that have not been resolved:

1. How does my cloud server know when to create a dedicated server? Generally speaking, after all players on the client are ready, notify the cloud server to launch the dedicated server.
2. Generally speaking, the IP of a cloud server is fixed, but how do clients know which port to connect to? Because a cloud server may have multiple dedicated servers.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [October 28, 2023, 2:10pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/5 "2023-10-28T14:10:48Z")

</div>

> [@IEliot](#):
>
> How does my cloud server know when to create a dedicated server?

What i see in videos the server run several instances of the game. You will create two different executables. One is the server, the other is the client.

> [@IEliot](#):
>
> how do clients know which port to connect to?

I think this is implemented in the client executable.

---

<div class="post-metadata">

**Author:** ![IEliot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ieliot/32/1117433_2.png) [@IEliot](https://forums.unrealengine.com/u/IEliot)\
**Post date:** [October 28, 2023, 2:40pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/6 "2023-10-28T14:40:26Z")

</div>

You didn’t understand what I meant. My dedicated servers are located on a cloud server, such as AWS. Therefore, the approach in the video should not apply to me.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [October 28, 2023, 2:46pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/7 "2023-10-28T14:46:15Z")

</div>

You can choice how much instances of the game are executed at the same time on the server… the server software does it. You pay for CPU, you pay for RAM. The rest is done by de server sofware. You know de IP and the port becuse the company (Amazon → AWS) give you… then you write it in the cliente executable… So easy…

---

<div class="post-metadata">

**Author:** ![IEliot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ieliot/32/1117433_2.png) [@IEliot](https://forums.unrealengine.com/u/IEliot)\
**Post date:** [October 28, 2023, 3:18pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/8 "2023-10-28T15:18:02Z")

</div>

Thank you very much, but you probably didn’t really understand what I meant. Let’s reorganize our thinking:

A game (Room) is composed of multiple clients (Players) and a dedicated server. The dedicated server is located on a cloud server. What we need to do is organize a group of clients to connect to a dedicated server to start the game. Lobby Interface of EOS can organize a group of clients. After these clients are ready, we need to notify the cloud server in some way, and then the cloud server starts a dedicated server. The cloud server then returns the port to clients in some way (with a fixed IP), and then these clients can connect to the dedicated server. The reason we do this is because there are many rooms, which means many games, so a cloud server needs to create many dedicated servers, and the ports are not unique.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [October 28, 2023, 4:00pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/9 "2023-10-28T16:00:13Z")

</div>

Ok, yes, you are right.  
I didn’t see the background of the matter. You will probably want to do Matchmaking before starting the game so that the players are balanced.

I apologize.

If I find information on how to do that I will let you know.

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [October 28, 2023, 5:02pm UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/10 "2023-10-28T17:02:58Z")

</div>

I din’t watched this video PlayList… but it use AWS and a user says it work for Matchmaking… maybe help!!

> [@How do I create a Waiting Lobby like Fortnite's?](https://forums.unrealengine.com/t/how-do-i-create-a-waiting-lobby-like-fortnites/435930/5):
>
> You would have to use something like gamelift. This allows for matchmaking queues. Here’s a good tutorial series on this matchmaking stuff: Good luck! If you have any more questions, feel free to ask smiley

https://www.youtube.com/embed/tOy0xYaP3wA?feature=oembed&wmode=opaque&list=PLa1dM5bPQv0u2IWZRIxtRqwWVJNOUtlbF&start=1

---

<div class="post-metadata">

**Author:** ![GDab99](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GDab99](https://forums.unrealengine.com/u/GDab99)\
**Post date:** [May 2, 2024, 6:18am UTC](https://forums.unrealengine.com/t/how-to-launch-a-dedicated-server-through-eos-and-notify-clients-to-join-it/1349382/11 "2024-05-02T06:18:36Z")

</div>

Hello @IEliot , I was looking for exactly this.

Rephrasing what you said,  
Let’s say we are using EOS for matchmaking and have deployed our dedicated server on any online platform (AWS, Azure etc ). We still need to communicate that our clients are ready, start a server instance and send back the IP:Port of that instance in order for us to connect the clients.

Have you found some sort of solution in this regard or do we have to set up a socket communication of our own as you mentioned earlier ?

I was kinda hoping Epic Online Services has some sort of solution for this.
