RyroNZ / UE4MasterServer

This is a plugin for Unreal Engine 4 that adds server registration, deregistration etc with a master server.
http://ryanpost.me
zlib License
223 stars 73 forks source link

Create session detected but failed #15

Closed ongzs-ivan closed 3 years ago

ongzs-ivan commented 3 years ago

Hi, apologies for the trouble once again.

I've managed to get the server up and running on my PC but when I attempt to Create a Session in my game, it fails. My command prompt shows as follows: The part highlighted in yellow is me attempting to create a lobby session twice but both times failed. image

This is how I set up my blueprints to create the lobby: image

The Create Session node results in failure and I also get the error message connected to the On Failure execution Also, I attempted to Create a Session on a different PC but it gets stuck while attempting to do so. The command prompt doesn't pick up this other PCs attempt to create a session. So I think I might have set up my configurations wrongly.

This is my configurations for the Python file: image

And this is my configurations for the source file in the plugin: image

Apologies for the information dump as well I hope I can get your insight on what might be the problem. Thanks regardless.

ongzs-ivan commented 3 years ago

Ok, I figured out a problem to the first part where I couldn't create a session on the PC that is running the server as well. In the python file, line 76, "if (cherrypy.request.remote.ip != "127.0.0.1"):", the IP address should also be changed to fit the one being used

ongzs-ivan commented 3 years ago

Now my next problem is that I can't seem to Create Session/Join Session from another PC on another network I think I've narrowed down the issue to it being either a port forwarding issue or IP address connection issue. Running ping commands in cmd returned "request timed out" errors so that might the problem.

I've tried to opens ports as well as mess around with my firewall (even turning it off for both PCs) but they can't seem to ping each other, so I have no solution so far.

ongzs-ivan commented 3 years ago

I just tried running the other PC on the same network this time and surprisingly, it also doesn't work. It was able to detect a session being created by the server PC but it can't join it and it also can't create its own session.

ongzs-ivan commented 3 years ago

I just realized that when I run the server and create a lobby, it is unable to get any information of the session aside from the number of players (refer to the 1st picture in this post)

RyroNZ commented 3 years ago

Hey Ivan,

This is not designed to be used in a shipped product just for testing purposes (at least until additional things are added, but I don't have the time to be working on this).

It doesn't directly include LAN support (what may need to happen is pass both the local ip and remote ip and then test local first and then remote but its unsupported atm).

As far as session information you need to set this manually and unless you add extra code we only have support for the specific key pairs

SERVERNAME MAPNAME GAMEMODE PASSWORDPROTECTED PLAYERCOUNT

Cheers, Ryan

ongzs-ivan commented 3 years ago

That explains quite a fair bit. Sorry for the trouble and thanks for replying.