LF Multiplayer tutorial c++/blueprints

Hey guys,
I have already watched a lot of tutorials to make a Multiplayergame, but i have never seen a tutorial which shows me how to join a game via ip.
Maybe u can show me a video or something like that?
I’d prefer to do it with c++, but idc about blueprints.

Welcome to the Forum!

Joining via IP is fairly easy. You have different methods to do so:

  1. Open the Console and type “open IPADDRESS”, where IPADDRESS is of course the one you want to join.
    1.1. To open the Console, go to your Project Settings and click on “Inputs”. At the bottom you should see an option that allows you to specify console keys.
  2. If you want to do this through a Menu, and not the ugly console, you need to create some sort of TextBox and Button in a UMG Widget. Tutorials about UMG are also found on Youtube and the Wiki.
    2.1. Once you have that, you let the user type in the IPADDRESS into the TextBox and attempt to join with the Button
    2.2. That means, when he presses the button you use the node called “Execute Console Command”. Plug in the PlayerController0 and use the Text of the TextBox and “open” for this Node.
    2.3. You can “Append” Strings, which means you add one to another. Use the AppendNode to append "open " to the TextBox Text. Make sure to have the whitespace at the end of "open ".

I assume you can do this in C++ too, but since you might want to use UMG and the you only need like 3 or 4 nodes in addition, you could just leave it in BPs. I don’t really know where to
call “Execute Console Command” in C++ and it would also need you to get the Text of the TextBox from UMG to C++ etc. Not worth the work :smiley: