How to get Create/Join Session IP
I am currently trying to implement a simple test Multiplayer system with the new Create/Find/Join Session commands. I am able to Create/Find and Join sessions that I have created, but I have no idea how I can load a map from the Client who Created the Session and also be able to connect to it with the other Clients. I know that "open Testmap?listen" will create map for joining and also that the clients have to type "open ", but I am not able to get any IP address where I can join to. I can't understand that when you find a Session that you can't just get the IP from the Session via the struct like "Get ServerIP", and I have no idea how to get the IP otherwise or how to manage the Sessions in a matter where the one who Created the Session is able to execute a command where it automaticly loads the map for everyone, but trying to do stuff like "servertravel Testmap" doesn't work like that.
Is there a way to get the IP from a Session where you can connect to? Or do you have to do all that joining a map stuff different?
asked Dec 14 '14 at 07:23 PM in Blueprint Scripting
The simplest solution I can think of is developing a resful web api in a language like node.js or even PHP. There are probably 1000's of tutorials on the subject. There are also a few plugins that expose some http blueprint nodes for posting and getting json right in the engine. When a user creates a new game the game posts up to the api and tells it things like what's the hosts name and what's the hosts IP address. Then the clients get a list of servers from the api which has the hosts name and the hosts IP. The next step is running the console command in blueprint to
UE4 does not have internal solution for that (except LAN support) .... most games don't, they usually use external services to list servers (so called "master list") that send beacon calls (and i think UE4 actully has support for that) so then can be listed and downloaded list by user can be used to find specific server and thats just fro dedicated servers, it's even more complex for client-side made sessions (popularly called P2P but it's not always real P2P)
So you have 2 options use:
This will most likely require registration your application on service (if there no test mode), also don't know how much this is exposed to blueprint i know TappyChicken use Leadderboard and Achievements features (and note they all work the same few platfroms) of those services in blueprint so that might be good starting point
Follow this question
Once you sign in you will be able to subscribe for any updates here