x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Need clarification for dynamically starting dedicated servers

So i have a backend which takes care of player registration and login in-game. players can't host a game themselves and have to send a request to backend and gets queued. when enough players are in queue a server should be created and pass the server info to the players and this parts that's not clear for me. so far i can just start a UE4 server by running mygameServer.exe located in Win64 folder.

  • For starting a server dynamiclly, all i have to have is some code opening the mygameServer.exe whenever needed? any extra parameters?

  • If so how do i get the server info for my players that are needed to connect to the newly created server?

  • Is there anything else i need or I'm missing?

Thanks in advance.

Product Version: UE 4.20
Tags:
more ▼

asked Nov 12 '18 at 08:23 PM in C++ Programming

avatar image

THIECK
17 1 2 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi THIECK,

1) Yes, that is correct. You could have a Python script, a batch script, etc. launch the executable if you want.

1 and 2) You can specify which port to run on using the -port parameter on the command line. As for the IP, that would be determined by whatever machine you are running the server on.

2) Assuming you spawn a new server process for each game, then you would also need some kind of "manager server." It could take care of launching the new game server and telling the clients what the port + IP is for that new server.

more ▼

answered Nov 13 '18 at 07:27 PM

DarkwindRichard (suspended)
avatar image THIECK Nov 14 '18 at 11:33 AM

Thank you! now it's clear for me.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question