# FSocket connection between levels

**URL:** <https://forums.unrealengine.com/t/fsocket-connection-between-levels/381431>\
**Category:** C++\
**Tags:** fsocket, unreal-engine, Levels, question, CPP\
**Created:** [January 10, 2017, 9:25am UTC](https://forums.unrealengine.com/t/fsocket-connection-between-levels/381431 "2017-01-10T09:25:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c5043162](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c5043162](https://forums.unrealengine.com/u/anonymous_user_c5043162)\
**Post date:** [January 10, 2017, 9:25am UTC](https://forums.unrealengine.com/t/fsocket-connection-between-levels/381431/1 "2017-01-10T09:25:18Z")

</div>

I am working on UE4 for a little while, totally a newbie.  
I am handling a problem is, how can I share FSocket connection between levels.  
For instance, UE works as a socket server, connection established in Level 1, when Level 1 finished, need to go to Level , then the issue comes, how can I pass the socket connection form Level 1 to Level 2, don’t want to disconnect it, want to use the same one in Level 2, anybody knows that ? please help, many thanks.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_684f066a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_684f066a](https://forums.unrealengine.com/u/anonymous_user_684f066a)\
**Post date:** [January 10, 2017, 10:14am UTC](https://forums.unrealengine.com/t/fsocket-connection-between-levels/381431/2 "2017-01-10T10:14:47Z")

</div>

use UGameInstance class to include the FSocket.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c5043162](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c5043162](https://forums.unrealengine.com/u/anonymous_user_c5043162)\
**Post date:** [January 12, 2017, 3:24am UTC](https://forums.unrealengine.com/t/fsocket-connection-between-levels/381431/3 "2017-01-12T03:24:26Z")

</div>

hmm, but how ? any further tips ?
