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"

Dedicated server connection

So, I've compiled dedicated server as GameServer.exe, I'm not satisfied that to make this I need first to get source code from github and compile it, and only in this case I can compile dedicated server.

But the question is: how to connect compiled clients to this server? I tried to connect to it with GameClient.exe 127.0.0.1 -game But this doesn't work. My server starts successfully and is shown in processes.

Product Version: Not Selected
Tags:
more ▼

asked Jul 16 '14 at 08:36 AM in Packaging & Deployment

avatar image

iShadowfax
36 4 6 11

avatar image iShadowfax Jul 17 '14 at 06:26 AM

BUMP! where is support?

avatar image iShadowfax Jul 18 '14 at 07:22 AM

BUMP no respond!

avatar image Adam Davis STAFF Jul 18 '14 at 01:59 PM

Hi iShadowfax,

We have assigned someone to your post and they will assist you as quickly as possible. Please remember that bumping is reserved for questions that have not had a response after several days, please refrain from bumping, especially in rapid succession. This pertains to the forums as well. If you feel this may be related to a bug, please move it to the bug reports section where it may receive additional attention.

avatar image SND R Keene Aug 27 '15 at 05:17 PM

Same problem here. I have built and can run a headless dedicated server, but a Shipping client has no way to connect.

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

3 answers: sort voted first

After investigating this further, it turns out that the engine explicitly ignores map or host names on the command line in shipping builds (see the UGameEngine::Init() function prior to 4.4, and the UGameInstance::StartGameInstance() function in 4.4).

To work around this you can provide a way to connect to a server in your in-game GUI, you can continue to test with non-shipping builds, or you can remove the code in that overrides the command line in your custom engine build. In the functions I mentioned above, look for

 #if UE_BUILD_SHIPPING
     // In shipping don't allow an override
     Tmp = TEXT("");
 #endif // UE_BUILD_SHIPPING

and comment it out or delete it. (In 4.2.1 this should be in GameEngine.cpp around line 468).

more ▼

answered Jul 31 '14 at 10:15 PM

avatar image

Ryan Gerleve STAFF
1.1k 25 12 49

avatar image iShadowfax Aug 01 '14 at 12:32 PM

No information about productive builds at all especially about dedicated server. Why can't we build it without using ue4 source code from github? When the issue with command line will be fixed? and many other questions. Dedicated server is a mystery.

avatar image Ryan Gerleve STAFF Aug 01 '14 at 03:22 PM

Enabling a dedicated server from the installed version of the engine (not GitHub) is something we definitely want to fix in a future release.

The command-line processing in Shipping builds is by design, so it's unlikely to change in a future release.

avatar image iShadowfax Mar 11 '15 at 08:29 AM

So what's the status? Any plans for this?

avatar image Ryan Gerleve STAFF Mar 24 '15 at 03:52 PM

We are looking into distributing the dedicated server binaries, but we don't have a specific timeline to share at the moment. They were originally omitted from the distribution to reduce the download size of the engine.

avatar image SND R Keene Aug 27 '15 at 06:02 PM

This is now in GameInstance.cpp around line 300

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

Hi iShadowfax,

We need some more information to diagnose this issue. Can you connect to a listen server instance of your game? Also try running the dedicated server in a command prompt window with the following command:

UE4Editor-Cmd Game -server -log

Where Game is the name of your project. This will print log information to the console window and may reveal any problems that are occurring. UE4Editor-Cmd.exe should be in the Engine/Binaries/Win64 directory after you compile for the editor configuration.

If there are any errors in the log, feel free to post a snippet here and we'll go from there.

more ▼

answered Jul 18 '14 at 03:42 PM

avatar image

Ryan Gerleve STAFF
1.1k 25 12 49

avatar image iShadowfax Jul 18 '14 at 08:36 PM

Server runs succesfully, i can connect to it using "development client" build but not with a shipping client build.

MyProject-Win32-Shipping.exe 127.0.0.1 this launches the game but no connection in a server log console

avatar image Ryan Gerleve STAFF Jul 18 '14 at 10:11 PM

What configuration was your server executable built with? Debug/Development/Shipping, Win32/Win64? There may be a bug where clients can only connect to servers of the same configuration. What version of the engine are you using?

avatar image iShadowfax Jul 19 '14 at 09:27 AM

UE4: 4.2.1 from git hub with all patches (compiled with Development Editor Win 64) Server: Shipping server Win32 Client: Shipping client Win32

avatar image iShadowfax Jul 23 '14 at 07:22 AM

Any suggestions?

avatar image Ryan Gerleve STAFF Jul 23 '14 at 02:33 PM

I have been unable to reproduce this issue here, it's still under investigation. I'll get back to you when I have more information.

avatar image iShadowfax Jul 29 '14 at 08:01 AM

It is not resolved :) You can't simply connect to a compiled dedicated server with shipping build type

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

Strange approach. I need this to start many instances of game server for a session like game.

more ▼

answered Jul 31 '14 at 11:17 PM

avatar image

iShadowfax
36 4 6 11

(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