# multiplayer hosting and joining

**URL:** <https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [June 21, 2014, 6:14am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413 "2014-06-21T06:14:48Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_175440171](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_175440171](https://forums.unrealengine.com/u/anonymous_user_175440171)\
**Post date:** [June 21, 2014, 6:14am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/1 "2014-06-21T06:14:48Z")

</div>

hello community,  
i am working on implementing multiplayer to my game.  
so i tested everything using the ‘number of clients’ in the engine.  
but now i want to test with friends, and idont know how to make the hosting and joining system.  
if anyone knows or have a tutorial, please let me know.

---

<div class="post-metadata">

**Author:** ![VRLtqq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@VRLtqq](https://forums.unrealengine.com/u/VRLtqq)\
**Post date:** [June 21, 2014, 9:51am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/2 "2014-06-21T09:51:45Z")

</div>

I believe it is done with command line options like described here: [Command-Line Arguments | Unreal Engine Documentation](https://docs.unrealengine.com/latest/INT/Programming/Basics/CommandLineArguments/index.html)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_175440171](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_175440171](https://forums.unrealengine.com/u/anonymous_user_175440171)\
**Post date:** [June 21, 2014, 10:05am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/3 "2014-06-21T10:05:32Z")

</div>

two quastions:

1. i dont know how to use command line. are these parameters or what?
2. is there any way to do it via console commands (so i can make it in the in-game menu)?

---

<div class="post-metadata">

**Author:** ![ZombieSoul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZombieSoul](https://forums.unrealengine.com/u/ZombieSoul)\
**Post date:** [June 21, 2014, 12:25pm UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/4 "2014-06-21T12:25:08Z")

</div>

I’m still working on it but take a look here:  
[https://wiki.unrealengine.com/Blueprint\_Basic\_Multiplayer\_HUD](https://wiki.unrealengine.com/Blueprint_Basic_Multiplayer_HUD)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_175440171](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_175440171](https://forums.unrealengine.com/u/anonymous_user_175440171)\
**Post date:** [June 22, 2014, 5:35am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/5 "2014-06-22T05:35:06Z")

</div>

right now its just how to makea menu… there are no events yet… i guess ill just wait for it to be done.  
thank you anyways.

---

<div class="post-metadata">

**Author:** ![ZombieSoul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZombieSoul](https://forums.unrealengine.com/u/ZombieSoul)\
**Post date:** [June 22, 2014, 6:33am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/6 "2014-06-22T06:33:28Z")

</div>

Look at the handle clicks section, it has the console commands, the tutorial is complete, just may be a few gaps in explaining things.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_175440171](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_175440171](https://forums.unrealengine.com/u/anonymous_user_175440171)\
**Post date:** [June 22, 2014, 5:55pm UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/7 "2014-06-22T17:55:31Z")

</div>

but again, what is the ip my friend should use?  
how can i set the host event to host the server on a specific ip?  
the ip we are using is from hamachi

---

<div class="post-metadata">

**Author:** ![CreatureNZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CreatureNZ](https://forums.unrealengine.com/u/CreatureNZ)\
**Post date:** [June 22, 2014, 11:44pm UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/8 "2014-06-22T23:44:01Z")

</div>

There are a few ways to do this. In engine, one of the users runs the game (Play in editor) as a listen server, the other user launches the game normally, opens the console with the ~ button and types _open 192.168.1.155_ (replace that with the ip address of the listen server)

alternatively, package the game, this creates an executable of the game you are working on. From here create a shortcut to the exe file and add the following to the end of the path:  
?listen -game

this will cause the game to launch as a listen server

so for me the shortcut was D:\Builds\WindowsNoEditor\TitanGame\Binaries\Win64\TitanGame.exe ?listen -game

if you are using hamachi, that will assign you an ip address, if you cant find it displayed on hamachi, open up a command prompt and type _ipconfig /all_ this will show you your ip address assigned to your pc. Look for the IPv4 address

Have a read of this too:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

You may find that when a player connects, they are not spawned in with a character, this is more than likely due to not enough spawn points / unblocked spawns, either add more, or move players away from the spawn point. This is an issue I was having when first starting to get networking behaving.

---

<div class="post-metadata">

**Author:** ![ZombieSoul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZombieSoul](https://forums.unrealengine.com/u/ZombieSoul)\
**Post date:** [June 23, 2014, 2:30am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/9 "2014-06-23T02:30:48Z")

</div>

while in game using the blueprint “Execute Console Command”:  
To start a listen server(Host) the command is Travel Mapname?listen  
To join a server its Travel \<IP address\>  
and to move the server and client to a new level it is ServerTravel MapName.  
Examples in the handle the click areas of the tutorial I posted.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_175440171](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_175440171](https://forums.unrealengine.com/u/anonymous_user_175440171)\
**Post date:** [June 23, 2014, 8:29am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/10 "2014-06-23T08:29:55Z")

</div>

so the server ip is automaticly the ip from hamachi?

---

<div class="post-metadata">

**Author:** ![CreatureNZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CreatureNZ](https://forums.unrealengine.com/u/CreatureNZ)\
**Post date:** [June 24, 2014, 7:57am UTC](https://forums.unrealengine.com/t/multiplayer-hosting-and-joining/6413/11 "2014-06-24T07:57:03Z")

</div>

> [@;82039](#):
>
> so the server ip is automaticly the ip from hamachi?

If hamachi is open when you launch your game with the ?listen -game command, then yes it is
