# Access to Engine Socket directly?

**URL:** <https://forums.unrealengine.com/t/access-to-engine-socket-directly/434262>\
**Category:** Character & Animation\
**Tags:** socket, fsocket, unreal-engine, question\
**Created:** [September 22, 2018, 4:51am UTC](https://forums.unrealengine.com/t/access-to-engine-socket-directly/434262 "2018-09-22T04:51:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RocketMania](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RocketMania](https://forums.unrealengine.com/u/RocketMania)\
**Post date:** [September 22, 2018, 4:51am UTC](https://forums.unrealengine.com/t/access-to-engine-socket-directly/434262/1 "2018-09-22T04:51:39Z")

</div>

Current i made master server that communicates with UE4. i made another UDP Socket on my game ( FSocket ) that communicates with my master server. so i got 2 sockets on my game. the engine socket and my own socket.

I managed the custom socket to send some info to my master when the game launches. like, saying user logined.

after the client send me some packets, my master server can send some info anytime. i mean, even client didn’t setup their port. ( port forwarding and firewall thing )

and their client port seems decided randomly, ( like, some client sending it using port 63434 and other is 34443 )

**Im looking for a way to allow other user to join other’s server where didn’t setup their network to allow outside connection.**

im currently announcing to people who wants to play with others. ’ open your port 7777 to allow other people join to your server ’

but like i said above, if some node knows its outer port ( randoming port like 63434 ) , can communicate without port forwarding.

im not good at networking so don’t know how it works, but i want to do this below.

- I want to access to engine socket  
directly and send some packets to my  
master server.

- when master server get the packet,  
save its outer port.

- When some player wants to join the  
server, master server tell them their  
outer port.

- client join the server using some  
command. like ( open  
222.222.222.222:63424 )

to do that, i need a way to access to engine socket directly. is it even possible?

thanks for your help
