Client is not connecting as such on Server

Hi, I’m trying to implement network behaviours on an already created single player.

I’ve seen all tutorials and examples I found. After some adaptations, I was able to have both players in scene during the editor.

The problem is that I cannot get it working on separated processes (by unchecking the “Use Single Process” box or using shortcuts outside the editor).

What happen is that both players enter as Server, I don’t know why. I tryed with the basic examples like the third person template and they work fine.

Any thoughts on this?

Thank you

What? They connect as server to another server or open one?

Because if they join as server you probably mixed up something with your authority… or something goes seriously wrong.

Servers don’t own a player. A listen server does have one because it’s running in the background of a client but a dedicated for example doesn’t have one at all! So you can’t technically join as server. Just one client can act as one.

Sorry, I wasn’t clear, I mean it is opening a new server, instead of joining the current one. And when I check the players currently in the server there’s only one. So it’s like having two games separated. So why it’s not joining the current game?

The weird thing is that I’m able to have both players just fine when I play in the editor as “Single Process” though.

Take a look at this video:

If you do everything similar it should create a client. However the normal executable will simply open up your game as if you’re just pressing “Play” (without any options enabled) in your editor. You can still join your sever via the command box though.

Thanks Erasio but already watched it and the rest of the playlist as well.

As I said, I’ve been able to have both players but using the “Single Process” checkbox from the Settings. The new player doen’t join when that checkbox is unchecked or if I try to shortcut outside the editor (like that video did).

Now, I discovered something pretty weird. If I keep the focus on the client window when it starts loading, it actually starts well. Yes, this sounds no-brainer, but I tryed it a couple of times and actually it works. But it should also work if I have the focus on the server (of course), like it happen with the examples.

Also, from shortcuts outside the editor it still doesn’t work, even if I focus the client all the time.

Any idea?

Have you tried connecting via command line?

Yes, I did and was the same. But then…

Yes! Just installed the new version of Unreal (4.7) and it got fixed :slight_smile:
Looks like it was a bug or something and they noticed and fixed it. So glad it’s now working.

Thanks any way for the support!

Got fixed on 4.7 :slight_smile: