# How to get serverport on BP?

**URL:** <https://forums.unrealengine.com/t/how-to-get-serverport-on-bp/373696>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [October 18, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/how-to-get-serverport-on-bp/373696 "2016-10-18T18:39:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_8160e8c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8160e8c2](https://forums.unrealengine.com/u/anonymous_user_8160e8c2)\
**Post date:** [October 18, 2016, 6:39pm UTC](https://forums.unrealengine.com/t/how-to-get-serverport-on-bp/373696/1 "2016-10-18T18:39:35Z")

</div>

Is there a BP element which provides the current server port… server port in the context of being the server and want to know the port of myself?

---

<div class="post-metadata">

**Author:** ![mdonge](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdonge](https://forums.unrealengine.com/u/mdonge)\
**Post date:** [October 19, 2016, 6:13am UTC](https://forums.unrealengine.com/t/how-to-get-serverport-on-bp/373696/2 "2016-10-19T06:13:39Z")

</div>

you can’t do it in BP only (or 4.13 introduced a new node) … You have to code it in C++, it’s easybut I don’t have the code here …

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8160e8c2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8160e8c2](https://forums.unrealengine.com/u/anonymous_user_8160e8c2)\
**Post date:** [October 20, 2016, 6:27pm UTC](https://forums.unrealengine.com/t/how-to-get-serverport-on-bp/373696/3 "2016-10-20T18:27:30Z")

</div>

yea ok, on other posts i found some like the “_GetWorld()_” … but i cant find a global function like this, there is just one on the _AActor::GetWorld()_… how this is to be used? Or on which actor?
