# Cannot create/connect server with c++ code.

**URL:** <https://forums.unrealengine.com/t/cannot-create-connect-server-with-c-code/5076>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [May 27, 2014, 9:10am UTC](https://forums.unrealengine.com/t/cannot-create-connect-server-with-c-code/5076 "2014-05-27T09:10:22Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![KillerPenguin](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/killerpenguin/32/1005607_2.png) [@KillerPenguin](https://forums.unrealengine.com/u/KillerPenguin)\
**Post date:** [December 29, 2014, 10:45pm UTC](https://forums.unrealengine.com/t/cannot-create-connect-server-with-c-code/5076/21 "2014-12-29T22:45:07Z")

</div>

Well we kinda found a way to do this. I believe the problem was that the network interface doesn’t let you do this with ‘play in editor’.

Hope this help. Otherwise, I’ll go dig some codes for you when our office open next week. Have a happy ny. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6334e343](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6334e343](https://forums.unrealengine.com/u/anonymous_user_6334e343)\
**Post date:** [December 31, 2014, 7:26am UTC](https://forums.unrealengine.com/t/cannot-create-connect-server-with-c-code/5076/22 "2014-12-31T07:26:53Z")

</div>

Hey since its not mentioned in this thread i just tought i add it.  
In 4.6 they added _“Unreal now supports hosting, discovering and joining online and LAN sessions through Blueprint scripting!”_  
If you want the functonality with Host and discovery i belive its allready . 🙂

> [@Steam Online Sessions in Blueprints](#):
>
> Unreal now supports hosting, discovering and joining online sessions through Blueprint scripting!  
> ![image26-554x353-1607648006.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/7/1708fb34906119b71325e9c17b1ce63ffcd64222.png)
> 
> - We’ve added new Blueprint nodes for hosting, joining, leaving, and finding online sessions, including both Steam and Local Area Network (LAN) sessions
> - are the new nodes:  
> - Create Session: Hosts a session that can be discovered over the network.  
> - Find Sessions: Searches the network for sessions available to join.  
> - Join Session: Joins a session that was found with Find Sessions.  
> - Destroy Session: Leaves a session that was previously created or joined.
> 
> [More Info .](https://www.unrealengine.com/blog/unreal-engine-46-released)

Hope it helps

---

<div class="post-metadata">

**Author:** ![arbopa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arbopa](https://forums.unrealengine.com/u/arbopa)\
**Post date:** [March 15, 2015, 9:50pm UTC](https://forums.unrealengine.com/t/cannot-create-connect-server-with-c-code/5076/23 "2015-03-15T21:50:26Z")

</div>

> [@KillerPenguin;64890](#):
>
> Seriously, when is the network document going to come?

9 months later and I haven’t seen any new info/documentation. Sucks.

---

<div class="post-metadata">

**Author:** ![drone.ah](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@drone.ah](https://forums.unrealengine.com/u/drone.ah)\
**Post date:** [February 28, 2016, 4:36pm UTC](https://forums.unrealengine.com/t/cannot-create-connect-server-with-c-code/5076/24 "2016-02-28T16:36:25Z")

</div>

Documentation for others who might stumble onto this post

> **[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...

---

<div class="post-metadata">

**Author:** ![arbopa](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arbopa](https://forums.unrealengine.com/u/arbopa)\
**Post date:** [February 28, 2016, 6:17pm UTC](https://forums.unrealengine.com/t/cannot-create-connect-server-with-c-code/5076/25 "2016-02-28T18:17:06Z")

</div>

> [@drone.ah;483109](#):
>
> Documentation for others who might stumble onto this post
> 
> [A new, community-hosted Unreal Engine Wiki - Announcements - Epic Developer Community Forums](https://wiki.unrealengine.com/How_To_Use_Sessions_In_C%2B%2B)

That says it is only for 4.7 …

[Previous page](https://forums.unrealengine.com/t/cannot-create-connect-server-with-c-code/5076.md?page=1)
